|
Tommy2143 Beginner
Joined: 10 Aug 2002 Posts: 17
|
Posted: Sat Jul 12, 2003 9:08 pm
Using the =~ expression |
I have this code
#if (%word(@currentitem,1) =~ %d)
Which is supposed to see if the first word of @currentitem is a number
However ZMud's settings editor is telling me it's a syntax error
This worked before I upgraded to 6.62, did something change that isnt shown in the help files?
Any help is much appreciated. |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Jul 12, 2003 9:37 pm |
Actually, it doesn't determine if the first word is a number. It determines if the first word contains a number. To determine if the first word is a number, use %isnumber. This will also eliminate the editor's complaint.
#IF (%isnumber( %word( @curentitem, 1))) |
|
|
|
|
|
|
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
|
|