Transfer practice · Store maintenance as false. Display not maintenance, update maintenance to true, then display not maintenance again. Expect true, then false.
Use a familiar idea in a different task. Read the changed requirement before running.
Store maintenance as false. Display not maintenance, update maintenance to true, then display not maintenance again. Expect true, then false.
true false
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.