SyntaxFix
Write A Post
Hire A Developer
Questions
&& and || take scalar inputs and short-circuit always. | and & take array inputs and short-circuit only in if/while statements. For assignment, the latter do not short-circuit.
&&
||
|
&
See these doc pages for more information.