.numties

From WikiManual
Revision as of 00:52, 8 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