I have a simple cost calc with the following PJS:
var result = people / 100 * units;
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?
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!