Atom

Logical operators

Use and, or, and not to work with conditions. With and and or, Atom can skip the second expression when the first already determines the result.

Decide whether a player can enter

Both checks must succeed for this condition to be true.

Atom
has_key = true
door_open = false
print(has_key and door_open)
print(has_key or door_open)
print(not door_open)
Output
false
true
true

Only one value is true, so and is false and or is true. not reverses the truth of door_open.