Hi,
Hope someone can help. I’ve noticed that with ND6 Lotus have kindly changed @subset so that it no longer takes a 0 as a second parameter. So, I decided to wrap my code around conditions, so hopefully I"d avoid getting errors. Consider the code below…
html:=@If(TotalHits<count;
@Text(pages)+" "+@Text(curpage)+" "+@Text(h)+" "+@Text(count);
@If(currpage>1;
@Subset(nhtml;curpage - 1);
"")
);
I would have hoped that surrounding the @subset with @if to make sure if it got to the @subset there’d be no way that there could be a 0 as the second parameter. BUT it seems to make no difference. Appears to me that the code is being evaluated no matter if the condition is false (which in all my testing it is, so the @subset should never be reached, what I see in the browser is the @text… variables if I take the @subset line out).
Is there something blindingly obvious I’m missing?
Thanks for any help.
Cameron