in reply to If doesn't work

Be sure,(in that example) that you are comparing numbers or, non-strings. The == operator is for comparing numbers.

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