This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-02-03 12:13:39

blaster395
Scratcher
Registered: 2009-12-16
Posts: 38

Using 'list' contains 'variable' to get position in list

Ok to put it simply I need to I need to use this to give me a number from searching the list for whatever.
Like if hello was the 3rd item on the list and I made the variable hello, it would give me the number three

BTW I need this for an advanced AI

Please help

Offline

 

#2 2010-02-04 01:26:11

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Using 'list' contains 'variable' to get position in list

http://img62.imageshack.us/img62/4969/28settingavariabletothe.png

Any questions?

Last edited by Jonathanpb (2010-02-04 01:27:05)


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

Board footer