I'm tying to calculate a % based on a drop down (ESI, PSI, etc.) each of which have a difference maximum score.
I don't know the correct code to keep the calculation from always using the last calculation listed ("PRA"/92) no matter what is selected in the drop down; doesn't seem to ignore the PRA when I select USI, for instance, like the documentation suggests:
I saw somewhere using something like $prePC = ""/$prePC=prePC but I cannot get that to work, also tried a nested IfThenElse,
can someone please assist?
I don't know the correct code to keep the calculation from always using the last calculation listed ("PRA"/92) no matter what is selected in the drop down; doesn't seem to ignore the PRA when I select USI, for instance, like the documentation suggests:
ifThen(CONDITION, CONSEQUENT)
If CONDITION is met, then do CONSEQUENT. If not - do nothing.
If CONDITION is met, then do CONSEQUENT. If not - do nothing.
I saw somewhere using something like $prePC = ""/$prePC=prePC but I cannot get that to work, also tried a nested IfThenElse,
can someone please assist?
ifThen(preTest = 'ESI', prePC = (startingScore/87)*100;
);
ifThen(preTest = 'PSI', prePC = (startingScore/82)*100;
);
ifThen(preTest = 'USI', prePC = (startingScore/99)*100;
);
ifThen(preTest = 'PRA', prePC = (startingScore/92)*100;
);
);
ifThen(preTest = 'PSI', prePC = (startingScore/82)*100;
);
ifThen(preTest = 'USI', prePC = (startingScore/99)*100;
);
ifThen(preTest = 'PRA', prePC = (startingScore/92)*100;
);
Comment