ReadContextVar

Returns the value of a contextual variable.

Syntax

ReadContextVar(name)
name = name of the variable whose value you want to retrieve

Remarks

The available variables will depend on the Qubes context in which the function is called.
NB: For now, XForms' context cannot read any ContextVar.

If the variable does not exist, it will return an empty value. If you want to choose the value that will be returned in those cases, use ReadContextVarDef.

Examples

ReadContextVar('myVar') = value of "myVar" in the current Qubes context

Classification

Qubes