1 Reply Latest reply on Aug 25, 2015 3:15 AM by try67

    print variables

    doekewartena Level 1

      I have read a lot of negativity about scripting on OS X.

      So far I have to agree, even running a script requires a keyboard with numpad for me.

      I saw this in a tutorial:


      var sum = 5 + 9;


      For me it prints undefined.

      Is the javascript bad or is it acrobat reader?

        • 1. Re: print variables
          try67 MVP & Adobe Community Professional

          "undefined" actually means the code finished executing without returning any values. I think you probably ran only the first line of code. When running code from the console you need to select (either with the mouse or the keyboard) all of the lines of code before running it. It's a bit of a pain but after once or twice you don't think about it anymore.