Skip to content

Commit d9a8264

Browse files
authored
Update README.md
1 parent cdfaa46 commit d9a8264

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ A domain specific language for Dynamics CRM allowing for easy text template proc
4949
- [Substring](#substring)
5050
- [Replace](#replace)
5151
- [Array](#array)
52+
- [Length](#length)
5253
- [Join](#join)
5354
- [NewLine](#newline)
5455
- [DateTimeNow](#datetimenow)
@@ -576,6 +577,21 @@ Array("those", "are", "test", "parameters")
576577
```
577578
Info: Arrays have a default textual representation, which is all of the array value text representations delimited by ", ". Above examples textual representation would therefore be "those, are, test, parameters". Null values are not removed, but show up as empty string.
578579

580+
### Length
581+
Gets the length of an array or a string that is passed as first parameter.
582+
583+
Example:
584+
``` JavaScript
585+
Length( [ "A", "B", "C" ] )
586+
```
587+
588+
or
589+
``` JavaScript
590+
Length( "ABC" )
591+
```
592+
593+
Both executions will return 3.
594+
579595
### Join
580596
Joins multiple strings together using the separator that you passed. You can pass dynamic expressions whose text representations will be used. The first parameter is the separator, the second one is the array of values to concatenate.
581597
You can pass a boolean as third parameter, stating whether empty parameters should be left out when concatenating (defaults to false).

0 commit comments

Comments
 (0)