Skip to main content
Answer

Report Designer visible expression help

  • February 16, 2023
  • 2 replies
  • 559 views

Forum|alt.badge.img

Hi all,

 

I’ve got this line which mostly works:

 

=IIf( InStr( [AMProdStep.Descr], 'MESH' )<0, IIf( InStr( [AMProdStep.Descr], 'ADHESIVE' )<0, True, False ), False)

 

We don’t want anything with ‘ADHESIVE’ in the product description to print and it works fine. But now we have one adhesive type we do want to print, let’s say ‘BLUE ADHESIVE’… how do I restrict all adhesives from printing but allow BLUE ADHESIVE to make it through the expression?

Best answer by lauraj46

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)

2 replies

lauraj46
Captain II
Forum|alt.badge.img+8
  • Captain II
  • Answer
  • February 16, 2023

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)


Forum|alt.badge.img
  • Author
  • Jr Varsity II
  • February 16, 2023

Hi @swartzfeger ,

I think this would do it:

=IIf(Instr([AMProdStep.Descr], 'MESH')>0 or 
     (Instr([AMProdStep.Descr], 'ADHESIVE')>0 and Instr([AMProdStep.Descr], 'BLUE ADHESIVE')<0), False, True)

Laura you’re a peach, that worked perfectly… this will help me begin parsing how I can write my own expressions… thank you!