Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
Gatsby
Novice


Joined: 19 Dec 2006
Posts: 30

PostPosted: Thu Oct 19, 2023 5:11 pm   

#waitfor
 
Greetings,

On one command my Mud can answer with 2 different strings.
Is it possible to have a #waitfor that will fire on any of those strings?
Something like #waitfor {str1 | str2} {...... ?

Thanks in advance
José
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4692
Location: Pensacola, FL, USA

PostPosted: Sun Oct 22, 2023 12:29 pm   
 
It is possible, but you need to insert an anonymous variable ({str1 | str2}) in the brackets.

#WAITFOR {{str1 | str2}} 3000 {do something if found} {do something if not found}
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General 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

© 2009 Zugg Software. Hosted by Wolfpaw.net