|
chris123zugg Apprentice
Joined: 23 Aug 2013 Posts: 176
|
Posted: Thu Sep 26, 2019 11:37 pm
Best way to store a list... |
i would like to find a way to store 10 things into a variable, each seperate from each other and the clear the variable that stored them, I'm also assuming it can store items infinitely
Could someone please help me formulate this? thanks. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: Fri Sep 27, 2019 3:06 pm |
list=item 1|item 2|item 3
or
#VAR list {item 1|item 2|item 3}
#ADDITEM list {item 4}
To add a single item.
To add a duplicate item:
list=%additem("item 4", @list)
#DELITEM removes all instances of an item while %delitem removes the first instance only.
to clear the list you could do:
list=%null
or
#VAR list {} |
|
_________________ Discord: Shalimarwildcat |
|
|
|
ErnestineDean Newbie
Joined: 20 Feb 2020 Posts: 1
|
Posted: Thu Feb 20, 2020 10:49 am |
Your site has a lot of useful information for myself. I visit regularly
|
|
|
|
|
|