Tile - Null None – Ylands
Jump to navigation
Jump to search
(Created page with " ---- {{Ylands scripting navbox}}") |
No edit summary |
||
Line 1: | Line 1: | ||
[[Image:Ylands_Tile_-_Null_literal.png]] | |||
*Null is "'''nothing'''". It is supposed to be something that '''doesn't exist'''. | |||
*It is possible to '''empty''' an object ([[Ylands Tile category - Variables|'''variable''']]) by '''setting''' it to '''null'''. | |||
*It is possible to use [[Ylands Tile - Conditional Statement|'''if statement''']] to '''test''' whenever an '''object''' is null. | |||
*Calling '''instructions''' on '''null''' '''object''' will cause an '''error'''. | |||
=Examples= | |||
<gallery> | |||
Image:Ylands_Tile_-_Null_literal_test.png|Null test | |||
Image:Ylands_Tile_-_Null_literal_error.png|Wrong use | |||
</gallery> | |||
---- | ---- | ||
{{Ylands scripting navbox}} | {{Ylands scripting navbox}} |
Revision as of 16:27, 20 December 2018
- Null is "nothing". It is supposed to be something that doesn't exist.
- It is possible to empty an object (variable) by setting it to null.
- It is possible to use if statement to test whenever an object is null.
- Calling instructions on null object will cause an error.
Examples