Skip to content

Logic Compare

Henry de Jongh edited this page Mar 10, 2023 · 1 revision
Description Icon
A reactive logic component that compares two numbers and invokes an output depending on their relationship.

Parameters

Name Description
Compare Value The compare value to test the input against.

Inputs

Name Description Parameter
SetValue Sets the input value to the float parameter without performing the test. value (float) The input value to be tested.
SetValueTest Sets the input value to the float parameter and performs the test. value (float) The input value to be tested.
SetCompareValue Sets the compare value to the float parameter without performing the test. value (float) The compare value to test the input against.
SetCompareValueTest Sets the compare value to the float parameter and performs the test. value (float) The compare value to test the input against.
Test Performs the test comparing the numbers and invoking the outputs accordingly. None

Outputs

Name Description Parameter
Less Invoked when the input value is less than the compare value. parameter (float) The unmodified input value.
Equal Invoked when the input value is equal to the compare value. parameter (float) The unmodified input value.
NotEqual Invoked when the input value is not equal to the compare value. parameter (float) The unmodified input value.
Greater Invoked when the input value is greater than the compare value. parameter (float) The unmodified input value.

Remarks

The Equals output uses Mathf.Approximately for additional numeric stability.

Clone this wiki locally