| (query logical OR join)

Tinderbox Icon


Operator Type:   Operator
Operator Scope of Action:   Query
Operator Purpose:   Boolean (query)

The pipe, |, is using in queries and conditional statements as a logical OR join. Thus:

if ($HasStock == true | $Price > 20) {$Badge="ok"} 

The note's $Badge is only set if either the first or the second argument are true.

See also the AND join and conditional statements using multiple arguments.


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

Up: Full Operator List
Previous: year(theDate[,value])  Next: |= (logical OR assigment) 

A Tinderbox Reference File : Actions & Rules : Operators : Full Operator List : | (query logical OR 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