Skip to main content
Participant
June 8, 2020
Question

Adobe Captivate Quiz

  • June 8, 2020
  • 2 replies
  • 388 views

When I use the Variable "$$cpQuizInfoPassFail$$" it displays true or false, how does I get it to display "Pass" or "Fail"

 

This topic has been closed for replies.

2 replies

Lilybiri
Legend
June 9, 2020

You got a complete answer from Rod. You didnn't explain in which circumstances you want to use that system variable.  It is indeed a Boolean variable, when I use it I even use 1/0 instead of true/false. But I have never used it standalone to display, just in conditional actions. A complete list and several examples for Quizzing system variables are in:

http://blog.lilybiri.com/using-quizzing-system-variables

 

RodWard
Community Expert
Community Expert
June 9, 2020

cpQuizInfoPassFail is a Captivate System Variable that only gives boolean values.  If you know about boolean logic you will realise that Pass or Fail are not acceptable values.  So, if you want to display different values in a text object of some kind (e.g. a Smart Shape) you would simply need to convert the default values from cpQuizInfoPassFail into something more informative to your audience. 

 

A simple Conditional Advanced Action would do it, but you will need to create another User Variable to hold the surrogate values. 

IF cpQuizInfoPassFail == false, THEN var_MyCourseResult = Fail, ELSE var_MyCourseResult = Pass.