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
enema
Beginner


Joined: 06 Aug 2009
Posts: 11

PostPosted: Thu Sep 17, 2009 2:12 pm   

Getting strings from stringlist (really simple, please reply)
 
There is obviously a command I'm missing, I would like to take the first string from a string list and assign it to another variable without deleting it.

%pop - almost does it, but it deletes the item
%item - almost does it, but it only returns the last item in the list
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4672
Location: Pensacola, FL, USA

PostPosted: Thu Sep 17, 2009 2:36 pm   
 
%item(@var, 1)
_________________
Discord: Shalimarwildcat
Reply with quote
enema
Beginner


Joined: 06 Aug 2009
Posts: 11

PostPosted: Fri Sep 18, 2009 11:32 am   
 
perfect, thanks
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