Tile - Define Local Array Variable – Ylands
Jump to navigation
Jump to search
m (grammar) |
Lou Montana (talk | contribs) m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|14}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}}") |
||
(9 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
[[Image:Ylands_Tile_-_Variable_local.png]] | [[Image:Ylands_Tile_-_Variable_local.png]] | ||
*A local '''variable''' is | *A local '''variable''' is only '''available''' within the scope of '''one''' instruction '''sequence'''. | ||
*'''New''' local variable is '''defined''' when placed in '''valid''' instruction '''sequence'''. | *'''New''' local variable is '''defined''' when placed in '''valid''' instruction '''sequence'''. | ||
*Only '''instructions''' placed '''after''' local variable '''definition''' can access that variable. | *Only '''instructions''' placed '''after''' local variable '''definition''' can access that variable. | ||
*'''Set variable''' instruction is dragged directly from '''context menu''' (right click on definition tile). | *'''Set variable''' instruction is dragged directly from '''context menu''' (right click on definition tile). | ||
=Notes= | = Notes = | ||
*See also: [[Ylands Visual scripting introduction|'''Introduction to Visual scripting''']], [[Ylands Script conventions|'''Conventions''']]. | *See also: [[Ylands:Visual scripting introduction|'''Introduction to Visual scripting''']], [[Ylands:Script conventions|'''Conventions''']]. | ||
---- | ---- | ||
{{Ylands | {{Navbox/Ylands}} | ||
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|7}}}} | |||
[[Category: Instructions]] | |||
[[Category: Ylands 0.10]] |
Latest revision as of 14:24, 24 November 2023
- A local variable is only available within the scope of one instruction sequence.
- New local variable is defined when placed in valid instruction sequence.
- Only instructions placed after local variable definition can access that variable.
- Set variable instruction is dragged directly from context menu (right click on definition tile).
Notes
- See also: Introduction to Visual scripting, Conventions.