[ic] [if [scratch variablename]

Frank Reitzenstein frank at goldissue.com
Sun Feb 25 02:01:41 EST 2007

Frank Reitzenstein wrote:

>See the right square bracket in red?
>[if [scratch weightofoption] ]
>   [seti weight][summary amount='[scratch weightofoption]'][/seti]
>   [if-item-field weight]
>   [seti weight][summary amount=`[item-quantity] * [item-field
>   [/if-item-field]
>Well I can get this code to work with or without that right bracket.
>However if I add the right bracket it shows in my html (as errors do).
>But leaving it out is ungrammatical right?
>Is this a bug, or it it just because I live down under and break all the
>For those who are interested I created a new custom Options::Simple
>module which shows discount prices for options:
>The code above sets option weights for cart and checkout,
>Frank Reitzenstein.
>interchange-users mailing list
>interchange-users at icdevgroup.org
OK its not red now, but its the last bracket:

[if [scratch weightofoption] ]

More information about the interchange-users mailing list