I dont know if anybody uses BYOB here but I need help! I made a simple list within a list of numbers 1,2 in first part of the list and 3,4 in second part of list. I want to be able to delete a single number within this list of list. HELP! Thanks so much
Offline
Which version of BYOB are you using?
Offline
try:
delete (item (i) of [list2 v]) of [list1 v]
Last edited by GeonoTRON2000 (2012-12-12 10:10:23)
Offline
no,
delete (i) of (item (j) of (main list))where i and j are indices you want to delete the element at.
Offline
GeonoTRON2000 wrote:
try:
delete (item (i) of [list2 v]) of [list1 v]
That deletes the (the ith element of list2)th element of list1, not the ith element of (the jth element of list1)
Last edited by nXIII (2012-12-13 16:14:03)
Offline
joefarebrother wrote:
no,
delete (i) of (item (j) of (main list))where i and j are indices you want to delete the element at.
This would work the best, as if you had a list that had two lists in it, both of those lists had two items in (lets use 1 and 2 as the items, for instance)
To delete item one of list one in list, you would use:
delete (1) of (item (1) of [list name v])To delete item two of list one in list, you would change the FIRST number to a 2.
delete (1) of (item (2) of [list name v])Pretty simple, isn't it?
Offline