not reverses a boolean: not true becomes false, and not false becomes true. It can express that a blocking condition is absent.
Run the example to display false, then true.
false true
Lines must stay in order. Spelling, capitalization and spaces inside a message matter.
local maintenance = false
print(not maintenance)The stored value stays false; the expression not maintenance produces true.
New syntax: not
If maintenance is false, not maintenance is true. This does not change maintenance; it calculates a new boolean from its current value.
Select a word or symbol in this authored example. Your editor draft stays unchanged.
This is a private experiment copy. It does not replace your answer or complete the activity.
Your output will appear here.
Replace this code with the starter? Download your draft to keep a copy.
Your output will appear here.
Sign in with RoCreators to save private progress across devices. Community verification is separate.