Skip to content

Commit

Permalink
changed % to mod and added deprecation warnings #34 #48
Browse files Browse the repository at this point in the history
  • Loading branch information
cshaa committed Sep 22, 2021
1 parent 369a375 commit 7cdaea0
Show file tree
Hide file tree
Showing 15 changed files with 1,820 additions and 994 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ x + y | Add
x - y | Subtract
x * y | Multiply
x / y | Divide
x % y | Modulo
x ^ y | Power
x mod y | Modulo

Comparisons | Description
--- | ---
Expand All @@ -98,6 +98,7 @@ x < y | Less than
x <= y | Less than or equal to
x > y | Greater than
x >= y | Greater than or equal to
x == y <= z | Chained relation, equivalent to (x == y and y <= z)
x ~= y | Regular expression match
x in (a, b, c) | Equivalent to (x == a or x == b or x == c)
x not in (a, b, c) | Equivalent to (x != a and x != b and x != c)
Expand All @@ -107,7 +108,7 @@ Boolean logic | Description
x or y | Boolean or
x and y | Boolean and
not x | Boolean not
if x then y else z | If boolean x, value y, else z
if x then y else z | If boolean x is true, return value y, else return z
( x ) | Explicity operator precedence

Objects and arrays | Description
Expand Down
Loading

0 comments on commit 7cdaea0

Please sign in to comment.