Quote:
Originally posted by BlKnight
What do you mean only once? If's run only once or if in a loop, Whiles run as long as the flag=true.
|
It'll only run once because you're making the condition false inside the loop, as soon as it runs:
while (!strequals(#v(this.on),#s(mapf))) {
this.on=strtofloat(#s(mapf));
}
after it runs once, this.on gets the value of mapf, and !strequals(#v(this.on),#s(mapf)) becomes false