Comparison Functions

Comparison functions takes  1 for true and 0 for false
Denotations: a, b – logical values (1 or 0)

Function

Descriptioin

lt(a,b)

less then,  if a < b then 1 otherwise 0

le(a,b)

less or equal,  if a ≤ b then 1 otherwise 0

gt(a,b)

greater then,  if a > b then 1 otherwise 0

ge(a,b)

greater or equal,  if a ≥ b then 1 otherwise 0

eq(a,b)

equal,  if a = b then 1 otherwise 0

ne(a,b)

not equal,  if a = b then 0 otherwise 1