+ 7

Break statement not working

I tried doing a while loop in my game but I noticed it doesnt stop so I addeda break statement the loop still loops it doesnt stop is something wrong? break if fpa < 0 || bossd < 0 end

23rd Feb 2017, 12:31 PM
MrCoder
MrCoder - avatar
5 Answers
+ 7
@ChaoticDog Thanks ^.^ I'll try to often use then statement for break now :D
23rd Feb 2017, 12:41 PM
MrCoder
MrCoder - avatar
+ 6
No It's on Ruby haha and yes I actually misplace a end statement which is similar to ; or } in C Languages Thank you Its fixed now :D
23rd Feb 2017, 12:40 PM
MrCoder
MrCoder - avatar
+ 6
All good the game is done and released it's beta version :D
23rd Feb 2017, 12:56 PM
MrCoder
MrCoder - avatar
+ 2
put semicolon :p
23rd Feb 2017, 12:35 PM
Arya DRJ
Arya DRJ - avatar
+ 1
if fpa < 0 || bossd < 0 then break end
23rd Feb 2017, 12:40 PM
ChaoticDawg
ChaoticDawg - avatar