abs

The abs node calculates the absolute value of a number, effectively stripping away any negative signs to leave only the magnitude. This is a fundamental tool for logic that relies on the "distance" between values rather than their direction.
When to use this node: * Error Calculation: Determining how far a player's input is from a target value (e.g., if the target is 50 and they enter 40, the difference is -10, but the "error" is 10). * Distance Logic: Useful in coordinate-based puzzles to find the total distance moved along an axis, regardless of whether the movement was forward or backward. * Magnitude Monitoring: Checking the raw intensity of a fluctuating sensor signal that can produce negative readings.
Connectors in
- A [type: variant]
Connectors out
- value [type: variant]