ReadContextVarDef
Returns the value of a contextual variable, allowing you to specify a default value.
Syntax
ReadContextVarDef(name, byDefault)
name = name of the variable whose value you want to retrieve
byDefault = value to return if the variable name does not exist
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 you want to return empty results for variables that do not exist, use ReadContextVar.
Examples
ReadContextVarDef('myVar', 'unknown') = value of "myVar" in the current Qubes context if "myVar" exists; if not, "unknown"