Developing Apama Applications > EPL Reference > Expressions > Comparison operators
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 (see Primitive and string types). On boolean types, you can use the = and != comparison operators.
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.
Copyright © 2013-2015 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.