View Single Post
Old 15th February 2010, 20:27   #29
redi jedi
Will code for food
 
Join Date: Mar 2005
Location: orlando
Posts: 521
@Nitorami

your syntax is incorrect:
index = 0;
while (below(index,5); index=index+1; );

should be:

index = 0;
while (
exec2(
index=index+1,
below(index, 5)
)
);
monitor=index;

the exec2 function "executes" both arguments and returns the second one. the while function will re-run itself until it gets returned a 0 or it gets to 1048576(change the below(index, 5) to 1 to test yourself)
there is also a exec3 function


its looks like the "while" is really a do...while as it always executes the first time

Blah!
redi jedi is offline   Reply With Quote