Compare

From RealMotion Wiki

Events/Compare

Compares values and output 1 if the comparison result is true. ​

Description

The Compare box tests if the input value matches the given condition.

General Use Case: The box is often used in project logic and control.

Inputs

Compare Max Int Sets the maximum value to test with when the Is In Range comparaison operator is selected.
Compare Min Int Sets the minimum value to test with when the "Is In Range" comparaison operator is selected.
Compare Val Int Receives the value to test with when the "Is Equal", "Is Greater" or "Is Lower" comparaison operator is selected.
Input Int Receives the value to test.

Outputs

Result Int Outputs the value 1 if the inputted value matches the condition.

Parameters

Comparison Operator String Sets the comparison operator.
Pin Type String Sets the Type used for the comparaison.

See Also

Boxes related

Event Counter, Event On Launch, Logic Gate, Trigger Event, Interpolate, Lua Script, Float, Int, ​​

Version Information

Current documentation version: 2.1.1. ​ ​