Jump to content

whileloop


Recommended Posts

Posted

Can someone just quickly do me a whileloop looking like the folowing.

I can't join IRC anymore due to my internet and i have nowhere else to turn :(

if $readini(thing.ini,thing,$rand(0,10)) isin $readini(thing.ini,main,things) try a different random number <- thats the bit im having trouble with :wink:

Posted

 var %a = $rand(1,10)
 while ($readini(thing.ini,thing,%a) isin $readini(thing.ini,main,things)) {
   %a = $rand(1,10)
 }

Something like that? :?

Posted

var %a = $rand(0,10)
while ($readini(thing.ini,thing,%a) isin $readini(thing.ini,main,things)) {
 %a = $rand(0,10)
}
echo $+(",%a,") isn't in it.

Edit: Uh, what he said ^ :P

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...