Comparison operators

The comparison operators are used to determine the equality, inequality, or relative values of their left and right operands.

The left and right operands must be expressions of the same type and the type must be allowed for that operator. You can use each comparison operator on decimal, float, integer, and string types. On boolean types, you can use the = and != comparison operators. See also the descriptions of these types in the API Reference for EPL (ApamaDoc) .

The result type of all comparison operators is boolean.

The comparison operators are:

Operator | Operation | Description |

< | Less than | Produces the result true if the left operand's value is smaller than the right operand's value and false otherwise. |

<= | Less than or equal | Produces the result true if the left operand's value is smaller than or equal to the right operand's value and false otherwise. |

= | Equality | Produces the result true if the left operand's value is equal to the right operand's value and false if they are not equal. |

!= | Inequality | Produces the result true if the left operand's value is not equal to the right operand's value and false if they are equal. |

=> | Greater than or equal to | Produces the result true if the left operand's value is larger than or equal to the right operand's value and false otherwise. |

> | Greater than | Produces the result true if the left operand's value is larger than the right operand's value and false otherwise. |