[ic] [if scratch...]

Dan B db@cyclonehq.dnsalias.net
Thu, 01 Mar 2001 12:28:23 -0800


At 01:25 PM 3/1/2001 -0500, you wrote:
>Any sort of complexity in evaluating a conditional should be done
>explicitly:
>
>[if type=explicit
>     condition="[calc]$Scratch->{count} < $Scratch->{count1}
>                [/calc]"]Do something
>[elsif type=explicit
>        condition="[calc]$Scratch->{count} == $Scratch->{count1}
>                 [/calc]"]Do something else
>[/elsif]
>[else]Do default
>[/else]
>[/if]

What is the performance difference between an explicit if (with [calc]) and 
a regular [if]?  (Assuming we are concerned about [if]'s inside 
[loop]'s)?  Is there no difference if they are doing the same thing?



>"Mat Jones - booksellersolutions.com" wrote:
> >
> > I tried both methods you suggested, but it still didnt read the [scratch
> > count1] variable.
> > With the loop-alternate it just printed [loop-alternate [scratch 
> count1]] to
> > the screen.
> > Any other suggestions?
> >
> > Thanks
> >
> > Mat
>
>--
>Mark Johnson
>Senior Developer - Professional Services
>Red Hat, Inc.
>E-Business Solutions
>markj@redhat.com
>703-456-2912
>
>_______________________________________________
>Interchange-users mailing list
>Interchange-users@lists.akopia.com
>http://lists.akopia.com/mailman/listinfo/interchange-users

Dan Browning, Cyclone Computer Systems, danb@cyclonecomputers.com