Benny's Secret Functions
How to use variables
Guide to Variables used in STU
How “Variables” work in STU and PAM
Format
{{GroupName.VariableName}}
{{GroupName.VariableName(index, function, and another variable)}}
Data Types
a. Omnipotent (String-base)
Variable data types get automatically converted into an appropriate type such as Integer, Float, and Date, when the data has been fed into an Operation.
3. Data Store Types
4. CSV type variables
When you want to use the column headers as Column names leave the check box checked just like in the example given above. Otherwise, columns are uppercase alphabets like A, B, C --- AA, AB and so on just like the notation in MS Excel.
5. Array type
6. Index
Examples
((family.brother(1))) or {{family.brother({{loop.count}})}}
7. Functions like COUNT, APPEND, and LAST are available.
Example
{{family.brothers(COUNT)}}
{{family.sisters(APPEND)}}
{{family.sisters(LAST)}}
8. The User Params operation in the Interactive group will generate its own variable.
9. Repeat counter variable.
There are 3 types of Variables used in STU.
User defined variables
Plugin generated variables
Special variables
1. User defined variables
User Defined Variables are the ones that are defined in the Variable section of STU.
2. Plugin generated variables
Plugin/Operation generated variables are the variables specific to the Plugin when the Return Value of CSV has been selected.
One example is the User Param operation in the Interactive tool-group.
For most of plugin generated variables, Users get to define group name but the variable names are defined by the plugin itself.
In below example Folder_C becomes the group name of the variable.
Then in this example of File Monitor plugin, the variable names are Index, filepath, and filesize like described in its help document.
3. Special variables
Special Variables are fixed in the STU system such as {{rp.index}} in the Repeat operation which holds the counter data.
VARIABLES
1. Notation
{{group_name.variable_name}}
Double curly brackets in both front and the back and there is a . (period) in between group_name (your choice) and variable_name (your choice)