| View previous topic :: View next topic |
| Author |
Message |
Ianchiu NewBot

Joined: 23 Oct 2009 Posts: 1
|
Posted: Fri Oct 23, 2009 12:10 pm Post subject: is verbot 5 possible to do "for loop" |
|
|
| act i want to use verbot to do the restaurant waiter, who can help to order food, and introduce menu, my problem is, every time i input i new food, robot will forget the previous order. is verbot 5 availaible to do "for loop" by c#? and how? |
|
| Back to top |
|
 |
leseur sylvain OmnipotentBot

Joined: 08 Nov 2004 Posts: 1361 Location: Suburb of Paris France
|
|
| Back to top |
|
 |
JonC MasterBot

Joined: 02 Apr 2008 Posts: 340 Location: Leicestershire, Great Britain
|
Posted: Thu Oct 29, 2009 8:29 pm Post subject: |
|
|
As an alternative approach you might be able to define a vars-variable for your menu items and get the Verbot to append each choice to it to make a "mini-CSV" value.
This could be done in at least two ways: either using c# snippets or else VCM code (available in example KB download) and input capture (#input).
You would then need a way for the Verbot to realise when the ordering was finished.
Again there are several possibilities.
One is to make part of the output to your 'order rule' "Is there anything else?" then the Verbot could look for variations of "no thank you" etc and continue.
---
With respect to a "Verbot FOR loop".
This can't be done in Verbot itself directly, but as Sylvain says, you can do "tricks" with SEND and child/virtual child rules to get the effect. |
|
| Back to top |
|
 |
|