This code
Code: Select all
if ($v = 1) {echo $v;}
else {echo "else";}This code
Code: Select all
$v = 0;
if ($v = 1) {echo $v;}
else {echo "else";}This code
Code: Select all
$v = 0;
if ($v) {echo $v;}
else {echo "else";}I only understand the third one. How does XY handle assignments inside the if expression? (There is no error message.)
Thx.
XYplorer Beta Club