[ic] [if scratch...]

Mark Johnson markj@redhat.com
Thu, 01 Mar 2001 17:24:51 -0500

Very little compared to doing a bunch of if's inside a loop. But, each
interpolation does take resources.

Incidentally, even to do what you were trying to do, should you
restructure it in a way to make it work, would require two
interpolations since you were trying to compare the values of two
scratch variables: the [if..] interpolation, and the "[scratch count1]"

Dan B wrote:
> 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?

Mark Johnson
Senior Developer - Professional Services
Red Hat, Inc.
E-Business Solutions