you do not understand how evaluations or strings work.
If you put anything in a string, it will not be evaluated, but simply contain that value from that moment on.
$string = "0>0.1"; // contains "0>0.1"
$bool = 0>0.1; // contains TRUE
The IF statement needs a boolean, not a string.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…