From Bohemia Interactive Community
|
|
Line 1: |
Line 1: |
| [[Image:Ylands_Tile_-_Null_literal.png]] | | [[Image:Ylands_Tile_-_This_literal.png]] |
| *Returrn reference to teh script owner. | | *Returns '''reference''' of the 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 17:43, 20 December 2018