Conditional logic possible?

May 8, 2015 at 4:08 PM
I've installed previous version of 2sxc (6) and put together only the test part of a multiple choice test.
Is conditional logic possible to be applicable in 2sxc meaning could I apply it to calculate the outcome of the test?

Any definitive answer would be appreciated. Hints are welcome all the better.
Coordinator
May 9, 2015 at 12:10 PM
If you want to apply further logic in the display of the results, you should use razor templates. There you can write things like
var totalScore = 0;
@if(Content.Answer1 == "a") {
  totalScore = totalScore + 1
  <div>Your first answer was correct: a - the bad guy did it</div>
}


Your total score is @totalScore
May 9, 2015 at 12:39 PM
That's what I wanted for the kickstart Thanks a lot.