Interchange Developer Resource
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date ][Interchange by thread ]

[ic] alternating colour display



i'm trying to alternate colours on my item display, using this code:

[set colourset]no[/set]
[loop search="se=ADIPEX/sf=category/tf=title,contains"]
<FORM ACTION="[process-target]" METHOD=POST>
<INPUT TYPE=hidden  NAME="mv_todo"        VALUE="refresh">
<INPUT TYPE=hidden  NAME="mv_order_item"  VALUE="[loop-code]">
                [if colourset =~ /no/][set colourset]yes[/set]
                #print it in white....
                [else][set colourset]no[/set]
                #print it in a colour
                [/else][/if]
</form>
[/loop]

yet it never seems to do the "else" but. doing a [scratch colourset] jut
after the [loop] begins shows me that it's setting colourset to yes, but it
still prints it out in white. can someone tell me what i'm doing wrong? this
seems to be right to me, but it's obviously not...



Search for: Sort by: