scalar bool array string 0xe0ffffef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Thanks WGL.Q for notice)
 
m (Some wiki formatting)
 
(2 intermediate revisions by 2 users not shown)
Line 3: Line 3:
'''Compatibility:'''
'''Compatibility:'''


Version [[ArmA]] '''1.00'''
Version {{GameCategory|arma1|link=y}} '''1.00'''


''For OFP version, see [[scalar bool array string 0xfcffffef]].''
{{Feature|ofp|For {{GameCategory|ofp|link=y}} version, see [[scalar bool array string 0xfcffffef]].}}




'''Examples:'''
'''Examples:'''


[[hint]] [[format]] ["%1", undefined_variable]
<sqf>hint format ["%1", undefined_variable]</sqf>
 
<sqf>hint (if (format ["%1", undefined_variable] == "scalar bool array string 0xe0ffffef") then { "Variable undefined" } else { "Variable already defined" })</sqf>
[[hint]] ([[if]] ([[format]] ["%1", undefined_variable] == "scalar bool array string 0xe0ffffef") [[then]] [{"Variable undefined"},{"Variable already defined"}])
 




[[Category:Common Scripting Errors]]
[[Category:Common Scripting Errors]]

Latest revision as of 13:22, 15 July 2022

If variables don't exist, their value as string is generally a "scalar bool array string 0xe0ffffef" error.

Compatibility:

Version ArmA: Armed Assault 1.00


Examples:

hint format ["%1", undefined_variable]
hint (if (format ["%1", undefined_variable] == "scalar bool array string 0xe0ffffef") then { "Variable undefined" } else { "Variable already defined" })