[ic] interpolating variable names?

Ed LaFrance interchange-users@interchange.redhat.com
Thu Sep 20 17:16:00 2001


At 03:10 PM 09/20/2001 -0500, you 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]

Curses on Eudora for Windows!  Ctrl+E - move-to-end-of-line in just about 
every unix text editor - is "Send immediately" in EudoraWin, and there is 
no facility to override the key mapping!

Like I was saying:

[set name="var[scratch x]"]red[/set]



>Also, is there any good way to do a FOR look or a WHILE loop in the
>ITL?  .. just use perl?
>

Best done with [calc] or [perl], but you can do some rudimentary arbitrary 
loops:

[seti loopcount][calc]return '1 ' x 100;[/calc][/seti]
[loop arg="[scratchd loopcount]"]
[loop-increment]<br>
[/loop]

Will give you:
1
2
3
4
5
...
100

- Ed L.




===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================