CubeScripting Competition—while
#6
// wloop -- getting the most out of "while"
alias wloop [
alias $arg1 0
alias cmmd $arg3
while [(checkalias $arg1)] [
cmmd
+= $arg1 1
if (= (getalias $arg1) $arg2) [delalias $arg1; delalias cmmd] []]]
// wloop i 21 [whois $i]
Dang, can I vote for Zarj's?

Edit:
// The backward loop by DES|V-Man
alias bloop [
alias $arg1 (- $arg2 1)
alias cmmd $arg3
while [(checkalias $arg1)] [
cmmd
-= $arg1 1
if (< (getalias $arg1) 0) [delalias $arg1; delalias cmmd] []]]
Just throwing in some variety. ;-)
Thanks given by:


Messages In This Thread
RE: CubeScripting Competition—while - by V-Man - 19 Dec 10, 03:44PM