📝 clarify compare statements
This commit is contained in:
parent
2d3d5df8f5
commit
c59597d97e
@ -99,17 +99,23 @@ floor $1
|
|||||||
# only execute next line if cond is true
|
# only execute next line if cond is true
|
||||||
if|ifl cond
|
if|ifl cond
|
||||||
|
|
||||||
# cond:
|
# value to bool
|
||||||
x
|
$1 # same as `$1 == true`
|
||||||
!x
|
!$1 # same as `$1 != true`
|
||||||
x == y
|
|
||||||
x != y
|
# loosely typed compare
|
||||||
x === y
|
$1 == $2
|
||||||
x !== y
|
$1 != $2
|
||||||
x < y
|
|
||||||
x <= y
|
# strongly typed compare
|
||||||
x > y
|
$1 === $2
|
||||||
x >= y
|
$1 !== $2
|
||||||
|
|
||||||
|
# numerical / alphabetical compare
|
||||||
|
$1 < $2
|
||||||
|
$1 <= $2
|
||||||
|
$1 > $2
|
||||||
|
$1 >= $2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user