This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Wildcards

Old posts that have not been replied to for several years.
Locked
g
genius3k

Wildcards

Post by genius3k »

How can I make an "if {$arg == hey}" become a wilcard string. What I mean is so it catches if "hey" isin $arg. So I can say hey, I can say heya, heyhey, a hey, blah blah hey blah blah/etc.
Anyone know how I can do that?
User avatar
droolin
Halfop
Posts: 64
Joined: Thu Jul 24, 2003 9:07 pm
Contact:

Hope I get this right

Post by droolin »

if {[string match *hey* $arg]}

If hey is in the string, it will perform a true condition. If it is not, your else condition(if coded) will be perfomred.


droolin
p.s. Hope I got that right
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Also, be shure to consult the manual about the String to see how to make exact matches and stuff related. Enjoy! :)
Once the game is over, the king and the pawn go back in the same box.
Locked