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, DataScript 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 to
  <=  --  Less than or equal to
  ==  --  Equal to
  ~=  --  Not equal to

Logical Operators

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