Login

Fancade Wiki

Updated List Element.md (markdown)

... ...
@@ -10,13 +10,13 @@ Output:
10 10
- Elements: A dual purpose wire serves as **get variable** to output a value and as **variable** for [[Set Reference]]
11 11
12 12
## Notes
13
The list basically is what you call in scripting language as "Array", but what really is this array. An array is a single variable which can contain multiple values , in then which of each value is defined as "varible[index]" , normally index in real scripting is automatically generated depending on it's order.
13
The list basically is what you call in scripting language as "Array", but what really is this array. An array is a single variable which can contain multiple values , in then which of each value is defined as "variable[index]" , normally index in real scripting is automatically generated depending on it's order.
14 14
15 15
e.g. in JS language:
16 16
`var list = new Array["Hello", "Hi" , "Bye"]`
17 17
`document.write(list[0])`
18 18
19
In which it outputs "Hello" as hello is defined as variable `list` and it's index is `[0]`.
19
In which it outputs "Hello" as `["Hello"]` is defined as variable `list` and it's index is `[0]`.
20 20
21 21
* auto-generated index in all text script language always start with index 0.
22 22
Fancade Wiki