addcontext
- Last UpdatedFeb 19, 2025
- 2 minute read
The addcontext element enables you to add a context to a currently active context list.
Platform support
This node is supported on XR-Windows platform only.
|
XR-WIN |
XR-P-WIN |
XR-P-IOS |
XR-P-AND |
XR-P-WASM |
|---|---|---|---|---|
|
Full support |
No support |
No support |
No support |
No support |
|
|
|
|
|
|
Code example
This is a code example for the addcontext statement.
<command name="showmenu">
<addcontext context="aContext" />
<!-- ... -->
</command>
Fields
These are the fields for addcontext statement.
|
Fields |
Type |
Use |
Default value |
Description |
|---|---|---|---|---|
|
condition |
sstring |
Optional |
No default value |
Applies a condition to the function execution. |
|
context |
sstring |
Mandatory |
No default value |
The name of the destination context. |