Anything: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (grammar)
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 to not 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.}}
{{Wiki|todo|Add an example to explain the above statement.}}
{{Wiki|todo|Add an example to explain the above statement.}}
  [[str]] [[nil]]; {{cc|Returns [[Nothing]]. While this works, it does not make much sense}}
  [[str]] [[nil]]; {{cc|Returns [[Nothing]]. While this works, it does not make much sense}}
[[Category: Magic Types]]
[[Category: Magic Types]]

Revision as of 23:13, 16 February 2021

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.
🚧
TODO: Add an example to explain the above statement.
str nil; // Returns Nothing. While this works, it does not make much sense