User Tools

Site Tools


4rpl:commands:removelistelement

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
4rpl:commands:removelistelement [2024/09/13 13:40] – Renamed element parameter to index. Vertu4rpl:commands:removelistelement [2024/09/13 13:42] (current) – Added 2nd example using IndexOf Vertu
Line 13: Line 13:
 ===== Examples ===== ===== Examples =====
 <code 4rpl> <code 4rpl>
-createlist ->list+CreateList ->list
 "a" ->list[0] "a" ->list[0]
 "b" ->list[1] "b" ->list[1]
 "c" ->list[2] "c" ->list[2]
 RemoveListElement(<-list 1)  #["a", "c"] RemoveListElement(<-list 1)  #["a", "c"]
 +</code>
 +<code 4rpl>
 +CreateList ->list
 +"a" ->list[0]
 +"b" ->list[1]
 +"c" ->list[2]
 +RemoveListElement(<-list GetIndexOf(<-list "b"))  #["a", "c"]
 </code> </code>
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/removelistelement.txt · Last modified: 2024/09/13 13:42 by Vertu