Vebot 4.0 Verbot Community
Home | About Us | Products Overview | Verbot Standard Edition | Verbots Online | Downloads | Community | Wiki | SDK
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

is verbot 5 possible to do "for loop"

 
Post new topic   Reply to topic    Verbots Forum Index -> Discussion
View previous topic :: View next topic  
Author Message
Ianchiu
NewBot
NewBot


Joined: 23 Oct 2009
Posts: 1

PostPosted: Fri Oct 23, 2009 12:10 pm    Post subject: is verbot 5 possible to do "for loop" Reply with quote

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
View user's profile Send private message
leseur sylvain
OmnipotentBot
OmnipotentBot


Joined: 08 Nov 2004
Posts: 1361
Location: Suburb of Paris France

PostPosted: Thu Oct 29, 2009 6:21 pm    Post subject: Reply with quote

Welcome here Ianchiu.
You can use <send AAAA> command to build a kind of loop.

Friendly.
Sylvain
_________________
Talk With Athena the GoddessBot
Jeanneton La Française, avec son petit panier sous son bras
Back to top
View user's profile Send private message Send e-mail Visit poster's website
JonC
MasterBot
MasterBot


Joined: 02 Apr 2008
Posts: 340
Location: Leicestershire, Great Britain

PostPosted: Thu Oct 29, 2009 8:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Verbots Forum Index -> Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum