Sorry about the vague title, but I have no other way to explain this.
Say if I had a list that contained the items 7, @ and c and i wanted to see if any one of these items are equal in another list, say the alphabet. In this example the 7 and the @ would not be equal to any item in the alphabet list but the c will. How would I go about doing this the easiest way and the least time consumption if i wanted something to repeat until it notices that one of the items (7, @, c)=an item on the list of the alphabet
Offline
coolstuff wrote:
So from what I understand, you want to see if one item from a list is in the other list?
To put it basically, yes
Offline
markyiscool wrote:
coolstuff wrote:
So from what I understand, you want to see if one item from a list is in the other list?
To put it basically, yes
Well, you'd essentially have to loop through the items of the list. Here:
Last edited by coolstuff (2010-07-02 10:24:19)
Offline
Thanks coolstuff for your quick and well set out response
Offline
Also where it says 'Nope, those lists are completely different!', they might not be different, just that one thing is different between them. (Sorry, I have no technical input to add)
Offline
Jimmy-Jermaine wrote:
Also where it says 'Nope, those lists are completely different!', they might not be different, just that one thing is different between them. (Sorry, I have no technical input to add)
Well, that was just my wording I'll edit my post.
EDIT: Actually, it means that there are no items the same between them
Last edited by coolstuff (2010-07-02 10:25:01)
Offline
made this into a project
get it here
this makes a 3rd list of found items
Last edited by Locomule (2010-07-02 10:34:02)
Offline
Locomule wrote:
made this into a project
get it here
this makes a 3rd list of found items
That's genius! Excellent job!
Offline
Lol, yeah right up till I added my post and saw your earlier post hahah! Wait, we did the same thing bascially so you just complemented yourself! Thanks though See you kicking butt in here every day bro, mega kudos!! I joined the Scratch educators site but then I just came over here and started doing it instead.
Anyway I'm on dial-up so I'm stuck in this weird time-shifted alternate universe where I hit "submit" and 15 new posts magically appear in front of mine. I preserve my sanity by considering it a zen building experience??
Offline
Thanks to everyone who helped. I used the script in my project Shoot-Outs. What part of the game do you think I used it in?
Offline
markyiscool wrote:
Thanks to everyone who helped. I used the script in my project Shoot-Outs. What part of the game do you think I used it in?
Methinks when it computes your name, as per the project notes
Offline
coolstuff wrote:
markyiscool wrote:
Thanks to everyone who helped. I used the script in my project Shoot-Outs. What part of the game do you think I used it in?
Methinks when it computes your name, as per the project notes
![]()
Wow, you must be some mind-reader! I'm really thankful for your help
Offline
coolstuff wrote:
Jimmy-Jermaine wrote:
Also where it says 'Nope, those lists are completely different!', they might not be different, just that one thing is different between them. (Sorry, I have no technical input to add)
Well, that was just my wording
I'll edit my post.
EDIT: Actually, it means that there are no items the same between them![]()
I see..
Offline
coolstuff wrote:
Surely it will only report back the last item on the list with that script? I'll post what I think would work better in a while...
Offline
Wolfie1996 wrote:
coolstuff wrote:
Surely it will only report back the last item on the list with that script?
I'll post what I think would work better in a while...
![]()
How so? It cycles through every list item and I've tested it and it works just fine...
Offline
coolstuff wrote:
Wolfie1996 wrote:
coolstuff wrote:
Surely it will only report back the last item on the list with that script?
I'll post what I think would work better in a while...
![]()
How so? It cycles through every list item and I've tested it and it works just fine...
I think I misread it earlier I thought it was an if-else block, instead of an if block... whoops >.<
Offline