Values

There are five kinds of values that you can use in AutoPlay Media Studio expressions: integers, real numbers, strings, versions and variables.

Integers

Integers consist of whole numbers, like 1, -32516 and 475. They can be written with or without quotation marks, e.g. "341" and 341 are equivalent.

Real Numbers

Real numbers consist of "fractional" or "floating point" values, like 0.594, -1.5 and 123.654. They can be written with our without quotation marks - for example, "0.5" and 0.5 are equivalent. Any leading zero can be omitted as well, so, for example, ".75" and "0.75" are equivalent.

Strings

Strings consist of any sequence of characters surrounded by quotation marks, like "Wilbur", "the 25 happiest days of summer" and "hello world". If the strings don't contain any spaces or other value-delimiting characters, the quotation marks can be omitted.

Versions

Versions are special strings that begin with the letter "v" followed by one or more numbers separated by periods. (If there are two or more periods, the letter "v" can be omitted.) Examples: "v2", "v4.0", "v1.03", "0.2.0.0", and "6.0.1".

Variables

You can use variable names in an expression as placeholders for the values they contain. When an expression is evaluated, any variable names in it are temporarily replaced by the integers, strings, real numbers or versions that are currently stored in those variables.

Expressions can also be used as "values" in a more complex expression. For instance, in the expression (1 + 2) – 3, the sub-expression (1 + 2) is evaluated first, resulting in the value 3. Then the expression 3 – 3 is evaluated, resulting in the final value 0.

Next: Boolean Values