compile: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_code <nowiki>=</nowiki> "a <nowiki>=</nowiki> a + 1";
|x1= <code>_string <nowiki>=</nowiki> "a <nowiki>=</nowiki> a + 1";
_compiled <nowiki>=</nowiki> compile _code;  
_code <nowiki>=</nowiki> [[compile]] _string;  
[[call]] _compiled;</code> |= Example 1
[[call]] _code;</code> |= Example 1
 
|x2= <code>[[hint]] [[str]] [[compile]] "a = b";
//Result: {a=b}</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 13:59, 3 August 2013

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Compile expression.
Groups:
Uncategorised

Syntax

Syntax:
Code = compile expression
Parameters:
expression: String
Return Value:
Code

Examples

Example 1:
_string = "a = a + 1"; _code = compile _string; call _code;
Example 2:
hint str compile "a = b"; //Result: {a=b}

Additional Information

See also:
callspawn

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