Download ION Script User's Guide
Transcript
Chapter 3: Variables, Expressions & Operators 61 Expressions An expression is a combination of values, variables, and/or other expressions separated by operators, or simply a single value or variable. The following are examples of expressions: 'Friday' 1+3 $A + $B 4.0 $E = $M * $C^2 $String1 EQ $String2 $Browser.type $Variable = 4 + 3 $Form.name $X = $A + $B $Variable = (34 GE 341) $LastName = 'Smith' Values Values used in expressions can be any of the following: • Variables of the form $varname • String literals of the form 'string text' • Numbers of the form x or x.x • Numbers using scientific notation of the form xEy, xey, xDy, or xdy, where x is any real number and y is a positive or negative exponent. For example, 2E6 is the same as 2 * 106. Note that in ION Script there is no difference between the characters e, E, d, and D. • Booleans of the form TRUE, FALSE, true, or false. For example, $A EQ TRUE Expression Types There are three main types of expressions. They are: ION guide • Numeric expressions • Boolean expressions • String expressions Expressions