--- title: "getVariable" --- # getVariable > :::note Deprecated > This function was deprecated in 8.0.0. > ::: Retrieves the specified variable, or will return the default value if the name is not defined. ## Syntax `getVariable(name, defaultValue)`