calculator

User-to-User discussion about the PhraseExpress macro programming.
Post Reply
basroerig
Posts: 1
Joined: 30 Nov 20, 11:37

calculator

Post by basroerig » 30 Nov 20, 11:46

I want to design a questionair where each question adds to a cumalative sum like a calculator. How can this be done?
for example: question A: answer 1 = 1 point, answer 2 = 2 points, question B = 1 point, answer 2 = 2 points. When given answers 2 for both questions the result is 4.

Peter Stotz
PhraseExpress Expert
Posts: 914
Joined: 27 Feb 08, 15:07

Post by Peter Stotz » 30 Nov 20, 16:01

@basroerig
PhraseExpress offers many solutions for this.
Here is an example:

Code: Select all

{#calc {#formradiogroup -text Question A -items answerA1|answerA2 -vals 1|2 -def answerA1 -required -horizontal}+{#formradiogroup -text Question B -items answerB1|answerB2 -vals 1|2 -def answerB1 -required -horizontal} -round 0}
Peter Stotz
Windows 10 - PhraseExpress v15.0.73

Post Reply