Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm trying to print something if 'debugging = true' but it isn't working. Can someone help me?

Asked by 5 years ago

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

1 answer

Log in to vote
0
Answered by
Fad99 286 Moderation Voter
5 years ago
Edited 5 years ago

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

0
The keyword do itself starts a loop. DeceptiveCaster 3761 — 5y
Ad

Answer this question