| Operator Type: | Operator |
| Operator Scope of Action: | Query |
| Operator Purpose: | Boolean (query) |
The ampersand, &, is using in queries and conditional statements as a logical AND join. Thus:
if ($HasStock == true & $Price > 20) {$Badge="ok"}
The note's $Badge is only set if both the first and the second argument are true.
See also the OR join and conditional statements using multiple arguments.
