1 Reply Latest reply on Feb 16, 2010 6:49 AM by ninja

    If/else Print Script Issues

    cMuller

      Title

      If/else Print Script Issues

      Post

      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.]
      Else
          Print Setup
          Print[Records being browsed; All Pages]
      End If
      Go to Layout [original]
      Exit Script

       

      Thanks in advance.





        • 1. Re: If/else Print Script Issues
          ninja
            

          Howdy cMuller,

          Welcome to the forum.

           

          "When setting out to describe the truth, leave elegance to the tailor" - A.Einstien (paraphrased) -

           


          cMuller wrote:

           

          Go to Layout
          If[ProductQuantity = 100]
              Print Setup
              Print[Records being browsed; All Pages]

              Print[Records being browsed; All Pages]
          Else
              Print Setup
              Print[Records being browsed; All Pages]
          End If
          Go to Layout [original]
          Exit Script

           


           

          Not elegant...but very functional.  I use it regularly ;)