Advanced Action not following "else" direction
Hi,
I am using Captivate 8, and trying to create an advanced action involving a hotspot question.
Currently, I have:
If (all conditions are true):
If cpQuizInfoAnswerChoice [is equal to] 0 ((literal -- as generated by Captivate)
Then:
Execute Javascript: window.cpAPIInterface.setVariableValue("cpQuizInfoAnswerChoice", "Correct");
Else:
Execute Javascript: window.cpAPIInterface.setVariableValue("cpQuizInfoAnswerChoice", "Incorrect");
(FWIW, I am confident in the "Then" Javascript, having used this script in other, similar conditional advanced actions.)
However, regardless of whether cpQuizInfoAnswerChoice is 0 (i.e., correct) or appears blank (i.e., incorrect), the advanced action always returns the If condition (whether or not the parameters are met).
I suppose one way of solving this would be to figure out what is generated by Captivate for cpQuizInfoAnswer when the question is incorrect, but cannot seem to find it; another way would be to create a conditional advanced action based on whether the question was marked as Correct or Incorrect, but this does not seem to be a readily available option.
I would appreciate any suggestions on how to get around this issue!
