2 ms·
Just to clarify, what do you mean "instead of commenting out the code"? The above is equivalent to if (my_var == 'some value') { ... } which is not the same
by xdavidliu 6y ago
Just to clarify, what do you mean "instead of commenting out the code"? The above is equivalent to
if (my_var == 'some value') { ... }
which is not the same as commenting it out entirely.
- greenyoda 6y agoI think it may be a typo, and they meant "&&" instead of "||". That would be the equivalent of "if (false)", thus preventing that block of code from ever executing.