DataScript Constructs

Operators

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, DataScripts is case sensitive, so “a” does not equal “A”.

Arithmetic Operators

  + -- Addition 
  - -- Subtraction 
  * -- Multiplication 
  / -- Division

Relational Operators

  > -- Greater than 
  < -- Less than 
  >= -- Greater than or equal 
  <= -- Less than or equal 
  == -- Equal ~= -- Not equal

Logical Operators

  and 
  or 
  not 
  string.find -- Used to search for a string within another string.