Skip to content

SUB

65

The SUB node performs arithmetic subtraction by taking the second input (B) away from the first (A).

When to use this node: * Deducting Resources: Subtracting "health" points when a player triggers a trap or enters an incorrect code. * Penalty Logic: Removing time from the GameTimer as a consequence for specific actions. * Calculating Differences: Determining the gap between two sensor readings to trigger logic when they are "close enough".

Connectors in

  • A [type: variant]
  • B [type: variant]

Connectors out

  • value [type: variant]

Node properties

  • B [type: integer]