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

Jump to the current version of aTbRef

Tinderbox v9 Icon

+= (increment)


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Operator   [other Operator type actions]

 Item   [operators of similar scope]

 Mathematical   [other Mathematical operators]

 9.1.0

 


+=

This assignment operator is a convenient shorthand for incrementing an attribute. For example, the two following statements are equivalent:

$MyNumber += 3; 

$MyNumber = $MyNumber + 3; 

This operator may also be used with Lists and Sets, and += may be used to append strings:

$MyString += "!"