I think you can do away with the third condition of ($val1 == $val2).
Tricky one. I thought the same at first.
But think of 0 and 0.0 or 0E0 - all numerically equal, but not sting equal.
Same goes for 1.1 and 1.10 and of course, there's more to think about.
Cheers, Sören
In reply to Re^3: check if 2 values are equal
by Happy-the-monk
in thread check if 2 values are equal
by eXile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |