View Single Post
  #1  
Old August 12th 21, 03:55 AM
Vee Dee Vee Dee is offline
Junior Member
 
First recorded activity by WordBanter: Aug 2021
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.
Ads