Unsupported content This version of the documentation is no longer supported. However, the documentation is available for your convenience. You will not be able to leave comments.

==/2 - equals/2 - compare two values for  equality


This operator compares two values for  equality.

 $EXPR1 == $EXPR2
$EXPR1 equals $EXPR2 

==/2 arguments

Argument

Type

Description

$EXPR1
  • ANY
  • LIST_OF ANY

Expression to the left of the operator

$EXPR2
  • ANY
  • LIST_OF ANY

Expression to the right of the operator

Use ==/2 to test for the equality of two expressions $EXPR1 and $EXPR2.

When comparing lists, the corresponding list elements are compared one at a time. Therefore, the lists [a,b] and [b,a] are not equal.

==/2 - equals/2 example

$E.status == OPEN

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*