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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
jjloraine
Novice


Joined: 10 Jul 2006
Posts: 30

PostPosted: Fri May 16, 2014 9:59 am   

Making a string list from other strings
 
Bit of a blonde question, but is there an inbuilt function that'll just let me take the values from a stringlist and add them to a new list? Basically I want to do something like this:

List 1 = All-the-values-in-list-A and All-the-values-in-list-B
List 3 = All-the-values-in-list-A and All-the-values-in-list-C

etc

I can do this with #foralls and stuff, just was wondering if there was a quicker, inbuilt function.
Reply with quote
Fizgar
Magician


Joined: 07 Feb 2002
Posts: 333
Location: Central Virginia

PostPosted: Fri May 16, 2014 12:51 pm   
 
You can use the %concat() function to combine two lists.

Code:

$list1 = a|b|c
$list2 = d|e|f

$list3 = %concat($list1,"|",$list2)
_________________
Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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