Skip to content

Commit d17bfb9

Browse files
authored
Add Strings doc (#6)
1 parent 95830f5 commit d17bfb9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/en/docs/essentials/expressions.md

+13
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,19 @@ typeof("hello")
406406
math.atan2(1.1, 1.1)
407407
```
408408

409+
### String functions
410+
411+
| Function -> Returns | Description |
412+
| ------------------------------------------ | ------------------------------------------------------ |
413+
| `strings.LOWER(val: string) -> string` | Format `val` to lower-case |
414+
| `strings.UPPER(val: string) -> string` | Format `val` to upper-case |
415+
| `strings.TRIM(val: string) -> string` | Removes all spaces from each side of `val` |
416+
| `strings.TRIM(val: string, trim: string)` | Removes `trim` characters from each side of `val` |
417+
| `strings.LTRIM(val: string) -> string` | Removes all spaces from the left side of `val` |
418+
| `strings.LTRIM(val: sting, trim: string)` | Removes `trim` characters from the left side of `val` |
419+
| `strings.RTRIM(val: string) -> string` | Removes all spaces from the right side of `val` |
420+
| `strings.RTRIM(val: string, trim: string)` | Removes `trim` characters from the right side of `val` |
421+
409422
## Operators
410423

411424
```js {.rr}

0 commit comments

Comments
 (0)