Anything: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
Line 4: Line 4:


'''Example:'''
'''Example:'''
[[str]] [[nil]]; {{cc|While the documentation for [[str]] states it takes [[Anything]], [[nil]] / [[Nothing]] will cause it to not execute.}}
<sqf>str nil; // While the documentation for str states it takes Anything, nil / Nothing will cause it to not execute.</sqf>
 
See also [[nil]] and [[Nothing]].
 


[[Category: Magic Types]]
[[Category: Magic Types]]

Revision as of 00:41, 22 July 2022

A variable of type Anything may be of any data types or Nothing.

Even though some commands list data type Anything as possible value, passing nil (Nothing) to a command might cause it not to work.

Example:

str nil; // While the documentation for str states it takes Anything, nil / Nothing will cause it to not execute.

See also nil and Nothing.