in reply to If doesn't work
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
|
|---|