|
Seiger Newbie
Joined: 24 Jan 2002 Posts: 1 Location: USA
|
Posted: 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. |
|
|
|
Troubadour GURU
Joined: 14 Oct 2000 Posts: 556 Location: USA
|
Posted: Thu Jan 24, 2002 9:51 pm |
The string matching operator is =~, not ~=.
Troubadour |
|
|
|
|
|
|
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
|
|