Data Types

There are three legal data types for Mobile Channels scripting: STRING, NUMERIC, and BOOLEAN. However, only STRING is supported internally. The other two are derived from STRING. String literals may be specified using the double quote character (“) to bracket the expression. Numeric strings may be specified without quotes. Numbers must be integers with values from -32,768 through 32,767. Boolean expressions evaluate to 1 for TRUE and 0 for FALSE. They may not be assigned to TRUE or FALSE, as in Visual Basic.

The data types and their values are described in the following table.

Data Type Value Description
STRING “Example string literal” As the string is expressed as itself rather than a variable value or the result of an equation, the result evaluates to “Example string literal.”
NUMERIC
Result=3+4
The result evaluates to 7. But Result is stored as a string value.
BOOLEAN
(a) 3 = 3, (b) 3 = 5
(a) evaluates to 1 and (b) to 0.