Length

Length

Returns the length of the passed value.

For example if a variable contained a phone number such as '0383208100' then the Length script would return a value of 10 in the result variable.

The value may be contained in a literal or it can be passed in a variable.

Fields

Variable

Defines how the value which is to be evaluated (for its length) is stored.

The possible storage is locations are:

  • Literal the text field contains the value to be evaluated.
  • User Space Variable - the text field contains the 'key' of a user space variable.
  • Asterisk Variable - the text field contains the name of an asterisk channel variable that contains the  value will be evaluated.
  • Route Variable - the text field contains the name of a Route variable that contains the value to be evaluated.
  • Dialed No - evaluate the length of the dialed no

Result

The type and name of variable to store the result in.