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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
dime
Novice


Joined: 15 Dec 2002
Posts: 35

PostPosted: Sun Jun 13, 2004 9:26 am   

strings matching
 
Sorry, but I can't seem to find the right syntax for this?

#TRIGGER {bla bla bla (*) bla bla bla} {#if (%1="abc def") {#show yes %1 matches "abc def"} {#show no %1 does not match "abc def"}}

[#show bla bla bla abc def bla bla bla]
bla bla bla abc def bla bla bla
yes abc def matches abc def

[#show bla bla bla fed cba bla bla bla]
bla bla bla fed cba bla bla bla
yes fed cba matches abc def

I've tried a bunch of different expressions. But what is the right syntax to do this?
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Sun Jun 13, 2004 9:39 am   
 
#trigger {bla bla bla (*) bla bla bla} {#if ("%1" = "abc def") {TRUE CMDS} {FALSE CMDS}}
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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