|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: 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! |
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Tue May 01, 2012 8:22 pm |
Code: |
#forall @{$herb} {dothis} |
|
|
|
|
Dyron Apprentice
Joined: 08 Apr 2004 Posts: 103 Location: USA
|
Posted: Wed May 02, 2012 6:33 am |
Thanks, Rahab! Nice to see ya. Miss ya on Dart.
|
|
|
|
|
|