If you construct a branching pipeline and add an Update Scalar component to one branch, the value of the variable only changes in that branch; the other branch will use the original value of the variable. In effect, each branch of a complex pipeline has its own “local copy” of the variable, each of which can be updated independently by instances of this component.
Properties
A human-readable name for the component.
In the Variables to Update dialog, select a variable in the Name drop-down and enter a new value in the Value column. Click + to select additional variables to update.The Value field allows you to use simple expressions within the field to change the variable value. Some examples of the expressions you can use include:
-
Add a fixed string to the beginning or end of a text variable, for example:
will add the string “STAGE_” to the front of the text variable
table_name. -
Combine (concatenate) two text variables:
-
Perform arithmetic on numeric variables. For example:
will increment the variable
counterby one. You must put the mathematical operator inside the curly brackets (braces),{ }, that surround the variable name.${counter} + 1won’t produce the expected result. -
Use a JavaScript expression to convert a text variable to upper case:
-
Use a JavaScript regular expression to replace all characters in a text variable that aren’t letters or numbers with an underscore:
-
Use a JavaScript expression to set a text variable to the current timestamp in ISO 8601 format:
-
Use a JavaScript expression to set a variable to a timestamp in ISO 8601 that depends on the current date and time, for example the start of the previous day:

