Does Not Equal

Tinderbox Icon


$Attribute != $OtherAttribute

$Attribute ≠ $OtherAttribute

This uses the negative equivalent test to the double-equals (==) usage for tests of equality.

Note that, when parsing queries, the template is evaluated in the agent's context. In particular, attribute references on the right side of the test are made to the agent and this refers to the agent. Conversely, in actions, on the other hand, the action is evaluated in the context of the note to which it is applied.

Using the '!=' syntax rather than '&#x2260' is recommended if content is to exported to the web as not all fonts include the latter special character; the Unicode address simply says where a glyph is stored in the font, it does not dictate whether it exists in a given font.


$BooleanAttribute != false

!($BooleanAttribute == false)

Matches notes whose BooleanAttribute value is true.

For other data types, testing for the presence of a value can be considered a boolean test. This is useful as queries and if() clauses use a 'condition' which must resolve as true or false.


$DateAttribute != "aDate"

$DateAttribute != date(aDate)

True where $DateAttribute date does not match the given aDate's calendar day.

$DateAttribute != "today". True where $DateAttribute date is not today's date (same calendar day).

$DateAttribute != "yesterday". True where $DateAttribute date is not yesterday's calendar day.

$DateAttribute != "tomorrow". True where $DateAttribute date is not tomorrow's calendar day.

$DateAttribute != "never". As never is 'no date', this is effectively a test that a value exists for the attribute. Note, 'never' is not < any date, nor is it > than any date, but it is equal to 'never'.

Modifiying placeholders. Use of date placeholders may be further modified:


NumberAttribute != number

or

Gathers all notes whose NumberAttribute value do not equal the given number.

Using the '!=' syntax rather than '&#x2260' is recommended if content is to exported to the web as not all fonts include the latter special character; the Unicode address simply says where a glyph is stored in the font, it does not dictate whether it exists in a given font.

Note that the usage '<>' is not a valid method in Tinderbox for asserting inequality.


$StringAttribute != "data"

True where StringAttribute value is identical to the data string. For instance:

$Text != "Hello" 

...would be true if the note's text consisted of something other than just the word "Hello".

Note the data string is must be quoted (it may work without quotes but don't rely on that!).


Tinderbox does not perform equality comparisons on Color-type and Set-type attributes.


Up: Basic Comparison Operators
Previous: Equals  Next: Greater Than 

[Last updated: 14 Dec 2009, using v5.0]

Google search aTbRef for:  

Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]

Creative Commons License

Made with Tinderbox