Changes

116 bytes added ,  23:08, 8 January 2022
no edit summary
Line 47: Line 47:  
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 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
+
:-  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
2

edits