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
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Tue May 01, 2012 7:38 pm   

Local Variable #forall
 
I'm trying to use a local variable to set a variable for a forall.

So lets say
$herb = "goldenseal"

I'd like to do:
#forall @$herb {do this}

which would be:
#forall @goldenseal {dothis}

I just can't figure out a way to make this work.

Thanks guys!
Reply with quote
Rahab
Wizard


Joined: 22 Mar 2007
Posts: 2320

PostPosted: Tue May 01, 2012 8:22 pm   
 
Code:
#forall @{$herb} {dothis}

Reply with quote
Dyron
Apprentice


Joined: 08 Apr 2004
Posts: 103
Location: USA

PostPosted: Wed May 02, 2012 6:33 am   
 
Thanks, Rahab! Nice to see ya. Miss ya on Dart.
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