Im new to this MEL, but Ive seen a function called strcmp (stringcompare). Maybe it's ok comparing two string variables directly with == and !=....I haven't tried that yet, so I wont say anything about it.
strcmp usage:
int $x = strcmp $s1 $s2
;
$x, can now be
-1, if $s2 > $s1
1, if $s2 < $s1
0, if $1 == $s2
Use the stored strcmp returnvalue in $x in your if-statement
if ($x == 0) // they are the same
{
// ...
}
else {
// ...
}
or
if ($x != 0) // they are not the same
{
//...
}
else
{
//...
}