Comparison Instructions, Data Conversion, and Analog Scaling
like other programming language, Codesys have the same blocks to compare values.
You can insert one new block EN in your program, then you can choose between different type of function, simple editing the name of the inserted block.
Then you choose the desired function, in the example GT
The help in line of Codesys give you the complete information about the available function
Hope this help you