isFinal: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Command " to "{{RV|type=command ") |
Lou Montana (talk | contribs) m (Text replacement - "\|game([0-9]) ?= (.+) \|version([0-9]) ?= (.+) " to "|game$1= $2 |version$3= $4 ") |
||
Line 2: | Line 2: | ||
|game1= a3 | |game1= a3 | ||
|version1= 2.00 | |version1= 2.00 | ||
Revision as of 15:53, 3 May 2021
Description
- Description:
- Checks if code or a variable was compiled final with compileFinal.
- Groups:
- Variables
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."};
- Example 2:
if (isFinal BIS_fnc_arsenal) then {hint "You can't edit this function!"};
- Example 3:
- Avoid overwrite .rpt warnings
if (!isFinal fnc_myCode) then { fnc_myCode = compileFinal str_myCode };
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 2.00]][[ Category: a3: New Scripting Commands | ISFINAL]][[ Category: a3: Scripting Commands | ISFINAL]]