Tinderbox 7 Icon

+ (concatenation)


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]

 Baseline

 


The concatenation operator, + (plus sign character), joins the strings/references/expressions before and after it. Thus, the expression

$FullName = "$FirstName"+" "+"$LastName" 

evaluates a first name "Jane" and last name "Doe" to give a string value "Jane Doe" for the FullName attribute.

The + sign is also used for numerical addition. Depending on context, Tinderbox will decided which operation is intended by the + sign. This is a very good reason to always enclose literal text strings in quotes.