2014년 12월 5일 금요일

Lists Help

Right now, I've got it where it's comparing the users input to items in a list. How do I make it to goes through the list and remove that item from the list? I think I'm getting the code mixed up. Thanks



don't hesitate to look at the fantastic tutorial yourself...

http://appinventor.mit.edu/explore/ai2/support/blocks/lists.html#inlist

is in list?


If thing is one of the elements of the list, returns true; otherwise, returns false. Note that if a list contains sublists,
the members of the sublists are not themselves members of the list. For example, the members of the list (1 2 (3 4)) are 1, 2, and the list (3 4); 3 and 4 are not themselves members of the list.
http://appinventor.mit.edu/explore/ai2/support/blocks/lists.html#indexinlist

index in list



Returns the position of the thing in the list. If not in the list, returns 0.


댓글 없음:

댓글 쓰기