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
Seiger
Newbie


Joined: 24 Jan 2002
Posts: 1
Location: USA

PostPosted: Thu Jan 24, 2002 8:44 pm   

string comparison
 
Hey guys, I have a question...

#IF (@v1 ~= "{D|~~D|E|~~E}") {say a} {say b}

for some reason when I do this it says a no matter what is stored in v1. Basically I want it to say a if v1 is D, ~D, E or ~E, and say b otherwise.
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Thu Jan 24, 2002 9:51 pm   
 
The string matching operator is =~, not ~=.

Troubadour
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