Skip to main content

GetVariableByName

Returns the value of a variable with the given name and prefix.

Syntax

GetVariableByName "variable_name"

Returns

unknown value

Arguments

NameRequiredTypeDescription
variable nameYesAny text e.g. "Hello, World!"

Possible errors

  • Provided argument is not a syntactically valid variable name.
  • Specified variable doesn't exist

On a running server

Use serhelp GetVariableByName to inspect the reference generated by your installed SER version.