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


Joined: 26 Oct 2004
Posts: 2

PostPosted: Tue Oct 26, 2004 10:09 am   

String comparison problem
 
Hello,

I need help with the following problem:
Code:

strTempLeader = Yaspen
strTeamLeader = Yaspen
#IF ( @strTempLeader = @strTeamLeader ) {#SH Yes} {#SH No}


And it always gives me No. Those variables are assigned by some triggers, they match exactly, but Zmud seems not to agree with that.

Any suggestions?

Thanks in advance
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Oct 26, 2004 11:24 am   
 
ok first a few key points CASE does matter
and the problem with yours... spaces matter too.


remove the spaces from both sides of the expression (same goes with your variable assignment)

#if (@strTempLeader=@strTeamLeader) {#SH yes} {#show No}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
yag
Newbie


Joined: 26 Oct 2004
Posts: 2

PostPosted: Tue Oct 26, 2004 3:53 pm   
 
re: nexela

Thank you, it works now :)
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