& (query logical AND join)

Tinderbox Icon


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.


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

Up: Full Operator List
Previous: $AttributeName (short form test for value)  Next: &= (logical AND assignment) 

A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : & (query logical AND join)

Quicklinks: Attributes | Action Codes | Export Codes | Designators | Date Formats | aTbRef Site Map

[Last updated: 16 May 2012, using v5.11.1]


Search:

Google search aTbRef for:  


Creative Commons Licence

aTbRef by Mark Anderson is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

[See aTbRef CC licence Attribution & Waiver info]

Made with Tinderbox