This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| crpl:docs:setlistelement [2013/07/29 14:25] – thepenguin | crpl:docs:setlistelement [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ~~DISCUSSION~~ | + | |
| <- [[crpl: | <- [[crpl: | ||
| ===== SetListElement | ===== SetListElement | ||
| Line 8: | Line 8: | ||
| === Description === | === Description === | ||
| + | Sets the value of element '' | ||
| + | |||
| + | Elements are indexed starting with zero, so the third element is at index 2. SetListElement can add a new | ||
| + | element at the end of a list, if '' | ||
| + | === Examples === | ||
| < | < | ||
| #Sets element #3 of list01 to the value of 5 | #Sets element #3 of list01 to the value of 5 | ||
| <-list01 2 5 SetListElement | <-list01 2 5 SetListElement | ||
| </ | </ | ||
| + | Sample list '' | ||
| + | 0 - 100\\ | ||
| + | 1 - 105\\ | ||
| + | 2 - 110\\ | ||
| + | 3 - 115 | ||
| + | |||
| + | Sample list '' | ||
| + | 0 - 100\\ | ||
| + | 1 - 105\\ | ||
| + | 2 - 5\\ | ||
| + | 3 - 115 | ||
| + | |||