[skip] if [not]|while [not]| = The possible 'Conditional' statements that can be used with this command.
<RetVar/IF> = Command return, with an 'if' statement used it will be TRUE (1) if condition passes or FALSE (0) if it fails, otherwise if you use a Variable it will be length of the string as an integer.
<Var/String> = The variable / string you wish to get the length of. This can be a variable containing a 'string' or a directly inputed 'string'.
This will be an integer value of the number of characters in the string, including spaces.
Each alpha / numeric character in a string is classed as 1, including spaces.
This is a very handy command for use with the SE before version 44 was released, to aid in the text alignment for menus and log messages. Since the release of SE version 44, other commands have been introduced to perform this function without the need for external scripts to perform text alignment functions.
Example:
$this.string = 'I wonder how long this is ?'
$this.string.length = get length of string $this.string
In the above example, $this.string.length would equal 27.
Command Location:
- »» General Commands
- »» Strings
<RetVar/IF> = get length of string <Var/String>
- »» Strings