Operators compare or contrast sets of data, and will return as true or false. DataScripts rely on the Lua scripting language for the syntax and supported usage of arithmetic, relational and logical operators. When evaluating strings, DataScript is case sensitive, so “a” does not equal “A”.
+ -- Addition - -- Subtraction * -- Multiplication / -- Division
> -- Greater than < -- Less than >= -- Greater than or equal to <= -- Less than or equal to == -- Equal to ~= -- Not equal to
and or not string.find -- Used to search for a string within another string
Updated: 2018-01-18 11:22:16 +0000