If I want to execute code only if a variable is true
, should I have:
if ($option) { /* code */ }
or
if ($option == TRUE) { /* code */ }
Doesn't the first one imply that also values like 1, 2, 3 etc. will execute the code.
Is the second one the better option?