$getVariable

Returns the value of the named variable of the current branch.
Syntax
    $getVariable{variable_name}{default_value}
DocumentationReturns the value of the named variable of the current branch:

    Parameters:
      variable_name, the name of the current branch variable whos value is requested.
      default_value, a optional parameter used to specify a return value in case the named variable does not exist on the current branch.
    Returns:
      the requested value of the named variable of the current branch.
    Throws:
      an java.lang.IllegalArgumentException in case the named variable does not exist on the current branch and no 'default_value' specified.
Examples
Access the value of the variable named 'some_variable' on the current branch:

    $//The expression

    $set{name}{some_variable}
    $set{value}{no_value}

    $if{$existsVariable{$get{name}}}
      {
      $set{value}{$getVariable{$get{name}}}
      }

    $//is equivalent to the expression

    $set{value}{$getVariable{some_variable}{no_value}}

    $//The following expression may cause an exception to be thrown if the variable named 'some_variable' does not exist on the current branch

    $set{value}{$getVariable{some_variable}}
GroupBranch
Minimum required transaction-mode:READ
Required scripting permission of the developerPERMISSION_FL_BASIC
Minimum parameters1
Maximum parameters 2