The String Variable Change operation can either set a string to the defined string variable or add a string to the defined string variable. You can also set an expression for the value change.
OBJECT = VALUE;
2 1 3
1: Operation
2: Destination
3: Source
(Example 1)
Consider that string variable STRING1 is set to XYZ. Configure the following items in the Script editor.
Variable block | Operation | Constant block |
Set the variable STRING1 in the variable block. | [Set] | ABC |
Block![]() TextSTRING1 = "ABC"; |
→ STRING1 is set to ABC when the trigger occurs.
(Example 2)
Consider that string variable STRING1 is set to XYZ. Configure the following items in the Script editor.
Variable block | Operation | Constant block |
Set the variable STRING1 in the variable block. | [AddTo] | PQR |
Block![]() TextSTRING1 += "PQR"; |
→ STRING1 is set to XYZPQR when the trigger occurs.