Skip to main content

Comparison

Equals#

Symbol: ==
Translated to JavaScript strict equality operator (===)
It takes 2 parameters.

== a b

Equals with implicit type conversion#

Symbol: ~=
Translated to JavaScript equality operator (==)
It takes 2 parameters.

~= a b

Not equals#

Symbol: ==
Translated to JavaScript strict inequality operator (!==)
It takes 2 parameters.

!= a b

Not equals with implicit type conversion#

Symbol: !~=
Translated to JavaScript inequality operator (!=)
It takes 2 parameters.

!~= a b

Greater#

Symbol: >
Translated to JavaScript greater operator (>)
It takes 2 parameters.

> 2 1
> a b

Greater or equals#

Symbol: >=
Translated to JavaScript greater or equals operator (>=)
It takes 2 parameters.

>= 2 1
>= a b

Less#

Symbol: <
Translated to JavaScript less operator (<)
It takes 2 parameters.

< 1 2
< a b

Less or equals#

Symbol: <=
Translated to JavaScript less or equals operator (<=)
It takes 2 parameters.

<= 1 2
<= a b