So, if $value1 = 'a string' || $value2 = 'another string' You are using the incorrect syntax, otherwise, you should be good to go.
If you're comparing strings, try this:
if ( $value1 eq $value2 ) {
print "I win!\n";
} else {
print "I loose.\n";
}
Enjoy!
-- Casey
In reply to Re: If
by cwest
in thread If doesn't work
by MAS4891
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |