Thread: ...stumped...
View Single Post
  #14  
Old 01-09-2002, 11:12 PM
Xaviar Xaviar is offline
Registered User
Join Date: Aug 2001
Location: Fairyland
Posts: 463
Xaviar is on a distinguished road
Send a message via ICQ to Xaviar Send a message via AIM to Xaviar
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
__________________
One by one, the penguins steal my sanity.

*cookie for Xaviar* --Originally posted by Tyhm

--Xaviar

A m e r i c a
Reply With Quote