This version is out of date, covering development from v5.0.0 to v5.12.2. It is maintained here only for inbound reference links from elsewhere.

Jump to the current version of aTbRef.

Tinderbox Icon

& (query logical AND join)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Operator   [other Operator type actions]

 Query   [operators of similar scope]

 Query Boolean   [other Query Boolean operators]

 Already in v5.0.0

 


The ampersand, &, is used 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.


Possible relevant notes (via "Similar Notes" feature):


A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Types : Query Boolean operators : & (query logical AND join)