Jump to content

'for' Loop examples?


Shymus Roffo
 Share

You are about to reply to a thread that has been inactive for 4519 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

I don't know how many examples containing for loops there are in th wiki, but a frequent use is to go through a list and do something with the individual values - you'll find an example here or here.

Another example is events that can return several values (very often keys) like the sensor event - see an example here (btw. in the llSensor and the sensor articles the while loop is used. If you are tackling the for loop, take a look at the while loop (and do while), too).

By now, you should have a pretty good basic idea what the loop is used for and in what context it is used :)

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4519 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...