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: 2017-12-15 14:07:06 +0000