View Single Post
  #1   Report Post  
Vee Dee Vee Dee is offline
Junior Member
 
Posts: 1
Default How to skip records within TableStart using SKIPIF, NEXTIF or NEXT?

Hi there

Is there a way to skip records inside TableStart with a condition?

I have attempted the following block of code with each of these keywords SKIPIF, NEXTIF, NEXT with no success. Below is an example using SKIPIF.

{ MERGEFIELD TableStart:SomeItem \* MERGEFORMAT }

{ SKIPIF {={IF "{MERGEFIELD Description \* MERGEFORMAT}" "A" 1 0}+{IF "{MERGEFIELD Description \* MERGEFORMAT}" "B" 1 0}}}

{ MERGEFIELD Value\* MERGEFORMAT }

{ MERGEFIELD TableEnd:SomeItem \* MERGEFORMAT }

What I want to happen is to only display "Value" when Description equals A and B.