Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Comparison Operators

Selects the operator for a boolean comparison.

There are 6 comparison operators: =, !=, <=, >=, <, and >.

The equality operators = and != can be applied to compare two expressions, both taking values in the same domain and are supported for all types. The inline binary comparison operators <, <=, >, and <= can be used to compare expressions taking values in an ordered domain. The expressions must both be integer, both Boolean.

For example, it can be used like this:

The statement x is not equal to y would be represented in Conjure Blocks as follows:

Example of comparison

and would produce the following Essence Output:

x !=  y 

See here for further information surrounding comparison operators.