Counting

From Shopbot Wiki

Counting something from a file

One can use variables and math to do many sort of counting from file.



Example:

&count = 0

LOOP:
&count = &count + 1
IF &count >= 5 THEN GOSUB THATS_IT
PAUSE, 1.0
GOTO LOOP

THATS_IT:
PRINT "Total count of "; &count; "!"

This is really just one way to do it and as wrote above, one can count other values.


Contributors
Paco, BillYoung
Personal tools