Elm - Relational Operators


Advertisements

Illustration

Open the elm REPL and try examples shown below −

C:\Users\admin>elm repl
---- elm-repl 0.18.0 -----------------------------------------------------------
:help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> 10 > 5 || 20>5
True : Bool
> 10 >5 && 20>5
True : Bool
> 10 /= 20
True : Bool
> not True
False : Bool
> not (10>20)
True : Bool
> xor True True
False : Bool
> xor (10>20) (20>10)
True : Bool
Advertisements