in reply to If doesn't work
if($value1 eq $value2) { ... } else { ... } [download]
ctweten beat me to replying, so this post is a kind of useless duplicate.