Hello, I'm trying to print a message if "local debugging = true" but it isn't working. Here's a code sample:
local debugging = true
||||||||||||||||||||||||||||||||||||||||||||||||||||||
if debugging = true then do print("Getting MainUI...") end end
✓ ANSWER ACCEPTED
I'm trying to print something if 'debugging = true' but it isn't working. Can someone help me?
1 answer
✓ Accepted answer
when you want to test if a value is true or false you have to use ==
and you dont use do in if statements, you use do in for loops
so your code would need to have if debugging == true then print("Getting MainUI...") end end
This discussion is preserved as it was. New answers, comments, and votes are closed.

1 comment
The keyword do itself starts a loop.