Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Cyril
Beginner


Joined: 16 Apr 2005
Posts: 12

PostPosted: Sun Apr 17, 2005 4:34 am   

String List
 
If you have a stringlist, how do you get the index?

0 Zmud
1 mud
2 hello
3 high
4
5
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Sun Apr 17, 2005 5:31 am   
 
%ismember("item", "list")

"item" refers to the thing you want to look for in the list, can be a variable
"list" refers to the list itself (ie, "Tom|Dick|Harry"), can also be a variable

If "item" is a part of "list", the function returns the item number. If "item" is not a part of "list", it returns a 0.
_________________
EDIT: I didn't like my old signature
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net