Shoutbox

[Suggestion] For loops - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Suggestion] For loops (/showthread.php?tid=73211)

[Suggestion] For loops by Ashylay on 04-01-2007 at 05:14 PM

I cant seem to find anything to do with a for loop in the Scripting Documentation.

Would come in usefull for some things I suppose. Im not the best at for loops but could come in handy maybe?


RE: [Suggestion] For loops by deAd on 04-01-2007 at 05:32 PM

The scripting documentation is for the Plus! APIs. It is not JScript documentation. You can find that on MSDN.


RE: [Suggestion] For loops by Jesus on 04-01-2007 at 05:40 PM

quote:
Originally posted by deAd
The scripting documentation is for the Plus! APIs. It is not JScript documentation. You can find that on MSDN.
It is also available from the script database
RE: [Suggestion] For loops by Volv on 04-02-2007 at 01:03 PM

And to answer the actual question :p;

code:
for (do_initially; do_while; do_after_each_loop) {
    <Insert Code Here>
}

For example:
code:
for (var $i = 1; $i <= 10; $i++) {
    Debug.Trace("This is loop: " + $i); //This will print (to the debug window) numbers 1 to 10 (inclusive)
}


RE: [Suggestion] For loops by RaceProUK on 04-02-2007 at 07:32 PM

quote:
Originally posted by Volv
code:
for (var $i = 1; $i <= 10; $i++) {
    Debug.Trace("This is loop: " + $i); //This will print (to the debug window) numbers 1 to 10 (inclusive)
}

If you remove the $s that is :P
RE: [Suggestion] For loops by Eljay on 04-02-2007 at 07:40 PM

quote:
Originally posted by RaceProUK
quote:
Originally posted by Volv
code:
for (var $i = 1; $i <= 10; $i++) {
    Debug.Trace("This is loop: " + $i); //This will print (to the debug window) numbers 1 to 10 (inclusive)
}

If you remove the $s that is :P

Actually, the $ is a perfectly valid character.