| Syntax |
|
| Documentation | The function countTokens returns the count of tokens in parameter 1 where parameter 2 specifies the delimiters which default to "\r\n\t" Returns the number of tokens contained in a string delimited by the given delimiter character:
delimiter_char, a delimiter character. This argument is optional and defaults to '\r\n\t'
|
| Examples | |
Get the number of tokens of some string:
$set{tokens}{$getTokens{$get{string}}{-}} $//The value of tokens should be 3 $set{tokens}{$getTokens{$get{string}}{$\ }} $//The value of tokens should be 5
|
|
| Group | String |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 2 |