Changes

no edit summary
Line 44: Line 44:  
* in addition, Integer type variables have 2 other kinds of settings: adding or subtracting 1 to current value (same as mathematical expression 'my_integer_variable +/- 1' but more convenient when incrementing/decrementing an index by step of 1)
 
* in addition, Integer type variables have 2 other kinds of settings: adding or subtracting 1 to current value (same as mathematical expression 'my_integer_variable +/- 1' but more convenient when incrementing/decrementing an index by step of 1)
   −
 
+
In expressions, booleans have value 1 if true, 0 if false
in expressions, booleans have value 1 if true, 0 if false
   
and beyond usual arithmetic operators (+ - * /) you can use
 
and beyond usual arithmetic operators (+ - * /) you can use
 
:- % for modulo
 
:- % for modulo
:- ** for power
+
:- ^ for power
:- logical operators (&& for "and", || for "or") where the operands can be booleans or numbers (0 is false, any non-zero is true) and the boolean result is converted to number (there is no "not" operator but there is a not() function shown in the list of available functions)
+
:- logical operators (&& for "and", || for "or") where the operands can be booleans or numbers (0 is false, any non-zero is true) and the boolean result is converted to number (there is no "not" operator but there is a not() function shown in the list of available functions)
 
:-  comparisons between numbers (<= < == != > >=) where again the boolean result is converted to number
 
:-  comparisons between numbers (<= < == != > >=) where again the boolean result is converted to number
  
editors
59

edits