Skip to content

IF

73

The IF node is a fundamental decision-making tool that compares two numerical or variant inputs (A and B) using a specific mathematical operator. It directs the flow of game logic by triggering separate actions for true and false results.

When to use this node: * Comparison Puzzles: Checking if a sensor value is equal to, greater than, or less than a target number. * Threshold Triggers: Triggering an alarm only when a "temperature" or "weight" sensor exceeds a specific safety limit. * Conditional Branching: Splitting a logic flow into two different paths based on whether a player's score has reached a minimum requirement.

Pro Tip: Use the operand property to change how the comparison is made (e.g., =, >, <, >=, <=, or <>) to fit the specific needs of your puzzle.

Connectors in

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

Connectors out

  • result [type: bool]
  • true [type: action]
  • false [type: action]

Node properties

  • B [type: integer]
  • operand [type: operand]