isFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
isFinal "varname"
isFinal code
{{Command
{{Command
<!-- Games and versions -->


|game1= a3
|game1= a3

Revision as of 01:14, 17 July 2020

-wrong parameter ("a3") defined!-[[:Category:Introduced with a3 version 1.99|1.99]]
Hover & click on the images for description

Description

Description:
Checks if code or a variable was compiled final with compileFinal.
Groups:
Uncategorised

Syntax

Syntax:
isFinal variable
Parameters:
varName: String - A String pointing to a variable
Return Value:
Boolean - True if final, false if not

Alternative Syntax

Syntax:
isFinal code
Parameters:
code: Code - Some code
Return Value:
Boolean - True if final, false if not

Examples

Example 1:
myCode = compileFinal "a = a + 1"; if (isFinal myCode) then {systemChat "Code is compiled final."};

Additional Information

See also:
compile compileFinal

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

[[Category:Introduced with a3 version 1.99]][[ Category: a3: New Scripting Commands | ISFINAL]][[ Category: a3: Scripting Commands | ISFINAL]]