scalar bool array string 0xfcffffef: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (added example)
Line 1: Line 1:
If variables don't exist, their value is generally scalar bool array string 0xfcffffef (not as a [[String | string]], you can compare it with "scalar bool array string 0xfcffffef" with the command [[format]]).
If variables don't exist, their value as string is generally a "scalar bool array string 0xfcffffef" error.




Line 10: Line 10:




'''Example:'''
'''Examples:'''


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






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

Revision as of 01:42, 21 November 2006

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


Compatibility:

Version OFP 1.96

Version ArmA 1.00


Examples:

hint format ["%1", undefined_variable]

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