[ic] Assign IC variable to another....
Kevin Walsh
interchange-users@icdevgroup.org
Mon Mar 3 15:44:00 2003
Kevin Old [kold@carolina.rr.com] wrote:
>
> To set the variable I've tried(in the component cart):
> ....snip
> <td class="contentbar2" align=right><b>[subtotal]</b></td>
> [seti topsubtotal][value subtotal][/seti]
> ....snip
>
> To display it, I've tried:
>
> [if scratch topsubtotal]
> Subtotal: [scratch topsubtotal]
> [else]
> Subtotal: $0.00
> [/else]
> [/if]
>
You seem to be confusing the [value] tag with the [subtotal] tag.
Both tags are listed in the Interchange Tags Reference documentation,
if you need more information.
To answer your question, you probably want something like this:
[tmp topsubtotal][subtotal][/tmp]
I can't quite see the point of your code. Why not just use the
following?
Subtotal: [subtotal]
--
_/ _/ _/_/_/_/ _/ _/ _/_/_/ _/ _/
_/_/_/ _/_/ _/ _/ _/ _/_/ _/ K e v i n W a l s h
_/ _/ _/ _/ _/ _/ _/ _/_/ kevin@cursor.biz
_/ _/ _/_/_/_/ _/ _/_/_/ _/ _/