Tile - This Group – Ylands

From Bohemia Interactive Community
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

Ylands Tile - Null literal.png

  • 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



Template:Ylands scripting navbox