Zoomed Image

AMSX Scripting Language - Command : GetVariable

Summary

Read a variable's raw value into the result buffer, bypassing command parsing

Description

Loads the named variable's value directly into the result buffer without passing it through the command parser. Use this when the variable contains JSON, XML, or other complex content that would be corrupted by normal parsing. The variable must have been previously declared. PreserveQuotes is an alternative for simpler cases.

Parameters

ParameterDescription
cmdVariable name to read

Syntax


GetVariable "Variable name to read"

Return to the AMSX Command Reference