with: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(pre -> code, syntax)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Execute the code inside the given namespace. |= Description
| Execute the code inside the given [[Namespace|namespace]]. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''with''' NameSpace do {...};|= Syntax
| '''with''' nameSpace '''do''' code|= Syntax
 
|p1= namespace: [[Namespace]] |= Parameter 1
|p2= code: [[Code]] |= Parameter 2


|p1= Namespace: [[Namespace]] |= Parameter 1
| [[Anything]] |= Return value
| [[Anything]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <pre>with missionNamespace do {global = global + 1;};</pre> |=Example 1
|x1= <code>[[with]] [[missionNamespace]] [[do]] {global = global + 1;};</code> |=Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 16:50, 15 April 2014

Hover & click on the images for description

Description

Description:
Execute the code inside the given namespace.
Groups:
Uncategorised

Syntax

Syntax:
with nameSpace do code
Parameters:
namespace: Namespace
code: Code
Return Value:
Anything

Examples

Example 1:
with missionNamespace do {global = global + 1;};

Additional Information

See also:
Forward CompatibilitymissionNamespaceuiNamespaceparsingNamespace

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section