AND - ignorantbliss/nba GitHub Wiki

An AND scripting node is used to see if two conditions are 'true' at the same time.

Inputs

1> Signal 1: An incoming signal that moves between 0 and 1
2> Signal 2: An incoming signal that moves between 0 and 1

Outputs

1> Output: 1 only if both incoming signals are non-zero.

Usage

This node is used if you want to check if two things are happening at the same time.

If you have more than two different conditions, you can nest several AND nodes together (where one AND node takes an input from another AND node).

Examples

All Coins Collected

If you have two coins in your level, you might want to block the Finish with a Door that only opens when the Player has collected both.

You can get the IS ACTIVATED from each coin and put them into an AND node, then connect the output of the AND into the ACTIVATE for the door.

This will then only open the door if the player has collected both coins.

See Also

NOT
OR