Page 1 of 1

simple loop

Posted: Sat Jun 25, 2005 6:55 pm
by ViPER
I want to loop my thread ten times and then stop. what is the simple way to do this?

im guesing while(x) statement but how to incriment (x) beyond 1 to 10 ?

Posted: Sat Jun 25, 2005 7:05 pm
by jv_map

Code: Select all

for(local.i = 1; local.i <= 10; local.i++)
{
 // etc
}

Posted: Sun Jun 26, 2005 12:07 am
by ViPER
TY!

how do i -

iprintln

the value of local.i ?

Posted: Sun Jun 26, 2005 1:31 am
by lizardkid
with all print statements you use this syntax...
local.var = 1 // doesnt have to be 1.

iprintln "Value of var is " local.var " "..."

Code: Select all

local.var = TRUE
iprintlnbold_noloc "Value of var without anything at the end is " local.var
These are just examples, you don't need any type of variable in a variable for any certain typ of print statement. just that basic syntax.

Posted: Sun Jun 26, 2005 1:47 am
by ViPER
Kools, tx!