Hi, I was using the short c-style IF statment in my code and I understood it worked by EXPR ? TRUE :FALSE; however when I compiled this:
6 < 8 ? $ans = "true" : $ans = "false";$ans was false... can anyone explain what happened?
In reply to if statement confusion by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |