← All exercises

Sign Check

easy

Evaluates a numeric input and sets a flag indicating if it is negative, zero, or positive.

What it teaches

Detect whether a number is negative, zero, or positive. Compare the input to zero and produce three separate flags. A clean way to share a numeric decision with downstream logic — once a comparison is a BOOL, anything else can react to it.

Inputs and outputs

TagTypeDefaultDescription
In_ValueREALNumeric value to evaluate
Sts_NegativeBOOLNegative flag
Sts_ZeroBOOLZero flag
Sts_PositiveBOOLPositive flag

Required behavior