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.
Parameters
| Tag | Direction | Type | Default | Description |
|---|---|---|---|---|
| In_Value | Input | REAL | 0 | Numeric value to evaluate |
| Sts_Negative | Output | BOOL | 0 | Negative flag |
| Sts_Zero | Output | BOOL | 0 | Zero flag |
| Sts_Positive | Output | BOOL | 0 | Positive flag |
Required behavior
- Sts_Negative is 1 when In_Value is less than 0.
- Sts_Zero is 1 when In_Value is exactly 0.
- Sts_Positive is 1 when In_Value is greater than 0.