how logic gates evaluate data
Logic gates handle boolean operations simply, but expand into short-circuit evaluation returning actual values when given non-boolean datatypes.
- For boolean inputs, AND requires both inputs to be true, while OR returns true if either input is true
- Blocks support any datatype, where nil and false are falsey while all other values are truthy
- AND returns the first argument if false, otherwise the second; OR returns the first if true, otherwise the second
- Short-circuit behavior powers common scripting patterns like ternary logic and waiting for character spawns


