Okay
  Public Ticket #1394709
multiple outputs?
Open

Comments

  • David started the conversation

    I have a simple cost calc with the following PJS:

    var people=$1;

    var units=$2;

    var result = people / 100 * units;

    return result;

    That works as expected, but as a second total line, directly below that I'd also like to show:

    var result = (people - 1) * (people / 100) * units

    What is the pjs to show that?  Is that even possible?

    Thanks,

    Dave

  •  378
    Support Agent replied

    Hi David,

    Unfortunately, it is not possible to have multiple outputs. What you can do is define, with JS pseudo code, using if/else conditional, which one of the outputs will be calculated, based on what the users selects.

    Please have a look at more info in our online documentation.

    Let us know if you need additional help.

    Regards, BoldThemes team

    If you like our products please consider leaving us a rating. A huge thank you from BoldThemes in advance!