AnsweredAssumed Answered

If/else Print Script Issues

Question asked by cMuller on Feb 16, 2010
Latest reply on Feb 16, 2010 by ninja


If/else Print Script Issues


Alright, I can't seem to get this script to work properly. I am using OSX 10.6.2 running Filemaker Pro 10. I am relatively new to the whole filemaker thing (~2 Months exp.)


Basically I have these products being processed, IF the number of products = 100, print the layouts twice, ELSE print them once. I am trying to get it to print this specific layout for all records in the current find.


The only thing that won't work is printing multiple copies in the first part of the If statement, it will only print 1 copy of each layout. The Else part works fine.


Here is what also gets me, if in the if statement, I put the print step twice (printing one copy) it also won't work!


Go to Layout
If[ProductQuantity = 100]
    Print Setup
    Print[Records being browsed; All Pages; Number of copies: 2; collated; etc.]
    Print Setup
    Print[Records being browsed; All Pages]
End If
Go to Layout [original]
Exit Script


Thanks in advance.