[ic] Re: [total-cost] question

chad townsend interchange-users@interchange.redhat.com
Sat Jan 5 01:42:00 2002


another one:

[calc] $Scratch->{test} = $Tag->total_cost(); return;[/calc]

[if explicit]
[condition]
  return 1 if $Scratch->{test} > 0;
  return 0;
[/condition]
1
[else]
2
[/else]
[/if]

./chad&


chad townsend wrote:
> 
> for example, i tried:
> 
> [if explicit]
> [condition]
>   $total_cost = $Tag->total_cost('noformat' => 1);
>   return 1 if $total_cost > 0;
>   return 0;
> [/condition]
> 1
> [else]
> 2
> [/else]
> [/if]
> 
> chad townsend wrote:
> >
> > i have seriously tried a over 20 ways to do this, i will paste them all if necessary ... but could
> > someone please explain to me how to say in ic html:
> >
> > if ([total-cost] noformat=1 == 0) {
> > show this html abc
> > } else {
> > show this html xyz
> > }
> >
> > it seems like such a simple thing.  but evey thing i tried failed.
> >
> > ./chad&
> _______________________________________________
> interchange-users mailing list
> interchange-users@interchange.redhat.com
> http://interchange.redhat.com/mailman/listinfo/interchange-users