GetSys

RangeCheckN

Check that a changed number variable is between two numbers

Syntax

Signature
xBool RangeCheckN( Get *get, double low, double high );

Arguments

get the Get being checked.

low, high the limits.

Return value

T when the Get did not change or the value is between low and high; otherwise F.

Description

For a VALID callback, such as `static xBool AmountValid( Get *get ) { return RangeCheckN( get, 1, 100 ); }`. A value out of range shows "Range: low - high" on the scoreboard until a key is pressed.

See also