[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] [if] and [loop-param] - OOPS, SORRY
From: "Philip Alves" <philip.alves@sympatico.ca>
> I've been stuck on this for a couple of hours now, and am getting
desperate,
> or I wouldn't ask the list.
>
> I've done a loop search which works fine, but now my problem involves
> displaying the results. the returned fields are header, detail_1,
detail_2,
> detail_3, detail_4, detail_5, detail_6, detail_7, detail_8, detail_9,
> detail_10, detail_11, detail_12
>
> Not all detail_x fields have information in them, and what I need to do is
> display them only if they are non-blank. I've tried:
>
> [if value [loop-param detail_2] ne //] <br> [loop-param detail_2] [/if]
>
> [if loop-param detail_2] <br> [loop-param detail_2] [/if]
>
> [if loop-param detail_2 != ""] <br> [loop-param detail_2] [/if]
>
> etc...
>
> I either get nothing showing, or if the value of detail_2 is blank, the
<br>
> still shows up. Makes for a lot of unwanted white space.
>
> TIA!!!
>
> Phil
My apologies to the list. Turns out the answer was under my nose all along.
However, in case anyone in the future has a similar bone-headed question,
here's the answer:
[if-loop-param param] IF [else] ELSE [/else][/if-loop-param]
Again, sorry!
Humbly,
Phil