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

What happens if you do 'while nil do end'?

Asked by 9 years ago

I've seen while true do end and while false do end, but never while nil do end, what does it do?

2 answers

Log in to vote
2
Answered by
Damo999 182
9 years ago

Nothing because nil means it does not exist.

while true do runs if something is true

while false do runs something if it is false

while nil do does nothing because nil means something does not exist.

0
Wow.. Never knew that, thanks for explaining it to me! +1 TheeDeathCaster 2368 — 9y
0
Yeah no problem glad to help, and thank you. Damo999 182 — 9y
Ad
Log in to vote
0
Answered by
KAAK82 16
9 years ago

I kno this might be useless, and if u don't kno much about loops, don't do end, do break() for breaking the loop. end is just ending a function so it's like u tell someone to do something until they say Stop and u alk off, same here... bt, sry, my letter W doesn't ork, I need to copy and paste it...

Answer this question