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.

If Statements

Old posts that have not been replied to for several years.
Locked
D
Darkj
Halfop
Posts: 86
Joined: Sun Jul 06, 2003 9:58 pm

If Statements

Post by Darkj »

Ok this might sound like a n00b question, so please just don't refer me to manuals, straight up answers please.

Basically, I just wanna know how to make an OR in an If statement.

I'm making a script that'll read off a website and basically I want it to find one thing or another thing.

So in this case, would this work?

if {[string match "*whatever*" $line] || [string match *other* $line]}

So say if whatever doesn't exsit on the page, but other does, so continue, and vice versa, other exists, but whatever does not, so it still continues.

Help would be greatly appreciated.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

yes it should i think but why don't you test it your self and when it returns an error .. then you post it :p
XplaiN but think of me as stupid
Locked