Determine how signal compares to zero
Simulink / Logic and Bit Operations
HDL Coder / Logic and Bit Operations
The Compare To Zero block compares an input signal to zero. Specify how the input is compared to zero with the Operator parameter.
The output is 0
if the comparison is false, and
1
if it is true.
Data Types 

Direct Feedthrough 

Multidimensional Signals 

VariableSize Signals 

ZeroCrossing Detection 

Bitwise Operator  Compare To Constant  Logical Operator  String Compare