isFinal: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "isFinal "varname" isFinal code")
 
mNo edit summary
Line 1: Line 1:
isFinal "varname"
isFinal "varname"
isFinal code
isFinal code
{{Command
<!-- Games and versions -->
|game1= a3
|version1= 1.99
|descr= Checks if [[Code|code]] or a variable was compiled final with [[compileFinal]].
|s1= [[isFinal]] variable
|p1= varName: [[String]] - A [[String]] pointing to a variable
|r1= [[Boolean]] - [[True]] if final, [[false]] if not
|s2= [[isFinal]] code
|p21= code: [[Code]] - Some code
|r2= [[Boolean]] - [[True]] if final, [[false]] if not
|x1= <code>myCode = compileFinal "a = a + 1";
[[if]] ([[isFinal]] myCode) then {[[systemChat]] "Code is compiled final."};</code>
|seealso= [[compile]] [[compileFinal]]
}}
[[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_System|{{uc:{{PAGENAME}}}}]]

Revision as of 01:12, 17 July 2020

isFinal "varname" isFinal code


-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]]