Repeat command blocks

jens jens.bernhardsson at gmail.com
Tue Jan 11 16:39:10 UTC 2011


Hello

Does anyone have an idea on how to repeat a block of commands a number
of times? I have gone through the E-Basic but I can't get the
Do...Loop or For...Next commands to work for me.

Example:

IF c.getAttrib("bet") = 1 THEN
WritePort &H378,64
sleep 5
WritePort &H378,0
sleep 5

*repeat 5 times

ELSEIF c.getAttrib("bet") = 2 THEN
WritePort &H378,64
sleep 10
WritePort &H378,0
sleep 10

*repeat 5 times

END IF

-- 
You received this message because you are subscribed to the Google Groups "E-Prime" group.
To post to this group, send email to e-prime at googlegroups.com.
To unsubscribe from this group, send email to e-prime+unsubscribe at googlegroups.com.
For more options, visit this group at http://groups.google.com/group/e-prime?hl=en.



More information about the Eprime mailing list