Command Reference

Length of String

Counts the number of characters in a string, and stores it in a variable.

Action ID: 33
Action Category: Strings

Settings

Store result in variable

The variable that the result will be stored in. The result will be the number of characters in the string.

Source String

The string whose length with be calculated.

Return Values

None

Example

In this example we will get the length of the full path to our application directory, stored in %AppDir%. The length of a path can be useful if you plan on manipulating it (e.g. stripping folders from the path).

Store result in variable: %AppDirLength%
Source String: %AppDir%

 

See Also: Alphabetical List of Actions, Categorical List of Actions, On Error tab