Skip to content

Flow documentation · legacy product

Relational Operators ​

Relational Operators are used to compare to operands (variables). These operators can compare any data type.

An example of usage is within an If statement. The condition is testing performing a test resulting in true or false. These operators determine who the condition is performed.

You should not try to compare differing data types using these operators. First convert both operands to be the same data type. Refer Conversion

When using the less than or greater than operators against String data types it compares using alphabetical sorting. Eg 'abc' is less than 'ade'

OperatorOperationOperandResultExample
=EqualAny Data TypeBooleanif 'abc' = 'abc' then
<>Not EqualAny Data TypeBooleanif 3 <> 4 then
<Less ThanAny Data TypeBooleanif X < Y then
>Greater ThanAny Data TypeBooleanif 3 > 5 then
<=Less than or equalAny Data TypeBooleanif X <= Y then
>=Greater than or equalAny Data TypeBooleanif 5 >= 8 then