Values

There are five kinds of values that you can use in Setup Factory 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".

Versions

Versions are special strings that begin with the letter "v" followed by numbers which can be separated by one or more 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 as placeholders for integers, strings or versions in an expression.

 

See Also: Expressions, How Values Are Stored