Anything: Difference between revisions
Jump to navigation
Jump to search
m (removed example for now.) |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
(3 intermediate revisions by 2 users not shown) | |||
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> | |||
}} | |||
== See Also == | |||
* [[nil]] | |||
* [[isNil]] | |||
* [[Nothing]] | |||
[[Category: Magic Types]] | [[Category: Magic Types]] |