This version is out of date, covering development from v6.0.0 to v6.6.5. It is maintained here only for inbound reference links from elsewhere. It is no longer actively updated.

Jump to the current version of aTbRef

TinderboxSix Icon

Setting an attribute to (no value)

You can remove an attribute value by setting it to nothing (a longer explanation is below)


Note the semicolon is not quoted, even for attribute type like strings. You can also use a empty string for string types:


Only the first of the syntaxes above also allows attributes that use prototype or preference settings to re-inherit these again.So, don't use an empty string as a reset value unless that is your definite need. See about resetting inheritance for more detail.

To explain the syntax further, you are effectively doing this to 'reset' an attribute to default inherited value:


…and then explicitly then adding a semi-colon to close the expression. Thus the semi-colon is not part of the rest expression. So the last code above, if used as a rule on its own, will work but is not recommended. The additional semi-colon makes sure Tinderbox does not have to guess your intent and also avoids you having to later remember to add a semi-colon if you add more code on the end of the original unclosed expression.

A Tinderbox Reference File : Actions & Rules : Setting an attribute to (no value)