![](templates/Classic/images/spacer.gif) |
Fidel Beginner
Joined: 07 Oct 2009 Posts: 19 Location: Poland
|
Posted: Sat Oct 24, 2009 7:14 pm
#echo variable with %cr |
Hi,
I have a list @arrows with texts containing %cr.
Code: |
#echo %ansi($fore, $back)%expand(%db(@arrows, sw)) |
Shows output:
Code: |
# #
# #
# #
##
##### |
But I want to use it in alias and "sw" should be a variable.
Code: |
#echo %ansi($fore, $back)%expand(%db(@arrows, $dir)) |
Shows:
Without %expand
Code: |
%cr# #%cr# #%cr# #%cr##%cr##### |
Can it be done anyhow?
Thanks for your help
Pawel. |
|
|
![](templates/Classic/images/spacer.gif) |
charneus Wizard
![](images/avatars/51564989746d852114da6d.jpg)
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Sun Oct 25, 2009 3:50 am |
Instead of putting it as a string with %cr, you could do it as a string list, then do:
Code: |
%expandlist(%db(@arrows, $dir),%cr) |
instead.
Just change the %crs in the database to | and you'll be all set.
Charneus |
|
|
![](templates/Classic/images/spacer.gif) |
Fidel Beginner
Joined: 07 Oct 2009 Posts: 19 Location: Poland
|
Posted: Sun Oct 25, 2009 10:07 am |
It works :)
Thanks!
Pawel |
|
|
![](templates/Classic/images/spacer.gif) |
|
|
|
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
|
|