Anything: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Some wiki formatting)
m (Some wiki formatting)
 
Line 1: Line 1:
A variable of type '''Anything''' may be of any [[:Category: Data Types|data types]] '''or''' [[Nothing]].
A variable of type '''Anything''' may be of any [[:Category: Data Types|data types]] '''or''' [[Nothing]].


{{Feature|warning|Even though some commands list data type '''Anything''' as possible value, passing [[nil]] ([[Nothing]]) to a command might cause it not to work.}}
{{Feature|warning|
Even though some commands list data type '''Anything''' as possible value, passing [[nil]] ([[Nothing]]) to a command might cause it not to work:
<sqf>str nil; // while the documentation for str states it takes Anything, nil / Nothing will cause it to not execute.</sqf>
}}


'''Example:'''
== See Also ==
<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]].
* [[nil]]
* [[isNil]]
* [[Nothing]]




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

Latest revision as of 23:31, 15 September 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:
str nil; // while the documentation for str states it takes Anything, nil / Nothing will cause it to not execute.

See Also