simple loop

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

simple loop

Post 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 ?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Code: Select all

for(local.i = 1; local.i <= 10; local.i++)
{
 // etc
}
Image
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

TY!

how do i -

iprintln

the value of local.i ?
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post 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.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

Kools, tx!
Post Reply