Tile - This Group – 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]] | |||
*Returrn reference to teh script owner. | |||
*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:41, 20 December 2018
- Returrn reference to teh script owner.
- 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