!$AttributeName (short form test for no value)

Tinderbox Icon


Operator Type:   Function
Operator Scope of Action:   Item
Operator Purpose:   Boolean (query)

!$AttributeName

In queries and conditional action code expressions, starting an attribute name preceded by an exclamation mark plus a $ character functions as a shortened form of the Boolean test for a false value. Thus the following are functional equivalents:

$MyBoolean==false 

!$MyBoolean

In both cases the result is false if the value of $MyBoolean is false.

Usefully Tinderbox also useful supports such short-form !$AttributeName tests for all the other attribute data types, returning true if the attribute has a default value. Per data type, this equates to long form tests like:

$MyAction=="" 

$MyColor=="" 

$MyDate==never 

$MyFile=="" 

$MyList=="" 

$MyNumber==0 

$MySet=="" 

$MyString=="" 

$MyURL=="" 

In all these cases a short-form test returns true if the attribute value is the default for that data type.

This test is the logical opposite of the $AttrbuteName test.


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

Up: Query Boolean operators

A Tinderbox Reference File : Actions & Rules : Operators : Action Operator Types : Query Boolean operators : !$AttributeName (short form test for no value)

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