← All exercises

Compare Pair

easy

Compares two numeric inputs and outputs Less, Equal, and Greater flags.

What it teaches

The configurable cousin of Sign Check. Compare two arbitrary numbers and produce three separate flags. Same shape, but the reference value is now an input instead of a fixed zero.

Inputs and outputs

TagTypeDefaultDescription
In_AREALFirst input value
In_BREALSecond input value
Out_LessBOOLLess flag
Out_EqualBOOLEqual flag
Out_GreaterBOOLGreater flag

Required behavior