The compare function works by comparing the values present at the two inputs and switches the output accordingly.
You can change the following settings in the operator panel:
Select the type of comparison
If you require hysteresis, you can define it here.
This is the time for which the comparison must be fulfilled for the output to be switched to true.