Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FOR or WHILE or any type of looping statement?

Status
Not open for further replies.

retrodans

Programmer
Joined
Dec 13, 2005
Messages
15
Location
GB
I basically want to do an incrimenting loop, does anyone know how I can do this, cant find it in any of the help files! Here's a basic form of what I want to create from it all.

for(var i=0; i<5; i++)
{
trace("I am greater then 5");
}

so outputs text five times...

Dan
 
If you're using Director 10 you can just use that by setting Javascript as Script Syntax.

In Lingo it would be:
[tt]--
repeat with i = 1 to 4
put(i)
end repeat
--[/tt]

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top