
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] interpolating variable names?
On Thu, Sep 20, 2001 at 03:10:57PM -0500, Jud Harris wrote:
> Is it possible? How can I make this work...
>
> [set x]1[/set]
> [set y]2[/set]
> [set z]3[/set]
>
> [set var[scratch x]]red[/set]
> [set var[scratch y]]green[/set]
> [set var[scratch z]]blue[/set]
>
[perl interpolate=1]
$Scratch{'var'.$Scratch->{x}} = 'red';
$Scratch{'var'.$Scratch->{y}} = 'green';
$Scratch{'var'.$Scratch->{z}} = 'blue';
[/perl]
> [scratch var1]<br>
> [scratch var2]<br>
> [scratch var3]<br>
>
> it should display:
>
> red
> green
> blue
>
> .. any ideas?
>
> Also, is there any good way to do a FOR look or a WHILE loop in the
> ITL? .. just use perl?
>
> Thanks again!
> -Jud
>
>
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users
--
Red Hat Professional Consulting Jason Kohles
(703)786-8036 (cellular) jkohles@redhat.com
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users