|
Gatsby Novice
Joined: 19 Dec 2006 Posts: 30
|
Posted: 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é |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
|
|