Language constructsEdit online Language constructs are the basic code of the IBM® Product Master scripting language. Functions and variablesFunctions and variables refer to the variable that is being called out to in the script. Looping and conditionalsLooping means that the same line of code is repeated. Conditionals means that you can have a line of code where a variable has a condition of whether it is true.HashMaps and arraysHashMaps and arrays are two types of language constructs.Calling a methodCalling a method refers to a block of code that takes some parameters and returns a value. Local variablesA local variable is a variable that is defined inside a function and with the word var. If no var exists, the global variable with the same name is used. Global variablesA global variable is a variable that is defined in the main script.Declaring variables and functionsTo declare a variable, use var before the variable name.Getting script by pathYou can use this script operation to get a script from the docstore or in a file system. Most of the time, this script operation is used together with getFunctionByName() and invoke() to start a function in a trigger script.Void definitionVoid is not used within scripts. You use void in the definition of the script operations in the reference information.New definitionNew is used as semantic in the script language. Some scripting operations require that a new keyword is used just before the script operation is called. Use of the new keyword in other places in the script is invalid.Parent topic: Script API