Page tree
Skip to end of metadata
Go to start of metadata



Introduced in

Version:2.00

Description

Description: Execute the code inside the given namespace.

Syntax

Syntax: with namespace do {command}
Parameters:
  • namespace: Namespace - Namespace to apply command to
  • command: Code - One or more commands accessing variables in the defined namespace
Return Value: Anything - Last element of command code.

Examples

Examples:
with uiNamespace do {global = global + 1};
// indentical to 
uiNamespace setVariable ["global",(uiNamespace getVariable "global") + 1];
with uiNamespace do {myString="abc"; myNumber=123}
hint (with missionNamespace do {tst})

Additional Information

See also: missionNamespace, uiNamespace, parsingNamespace
Multiplayer: 
Problems: 

Notes