You can just change the == to eq. Because $num2 is not a floating point
In reply to Re: number comparison with a twist by Veltro in thread number comparison with a twist by anotherguest