.numties

From WikiManual
Revision as of 23:52, 7 June 2008 by Jarbon (talk | contribs) (Added an example since an example was referred to in the article but there was no example code to go with it.)
Jump to: navigation, search

The condition *.numties tells the DNA how many ties are currently attached to the robot. In this instance no attempt is made to feed unless at least one tie is detected.

cond
*.numties 1 >=
start
-1 .tieloc store
-1000 .tieval store
1 .tienum store
stop