Copy link to clipboard
Copied
how to take cpInfoCurrentSlide system variable into user variable and subtract one to get the real number of the current slide.
Copy link to clipboard
Copied
Use either a Standard or Conditional Action and choose the Expression action. It will allow you to perform subtraction from a variable value.
Copy link to clipboard
Copied
Could you explain exactly why you want to do this? Because this variable is used often to insert the slide number on slides, it's index starts with 1 instead of the usual 0. Most other numbering system variables start with 0. That means if you want to replay a slide you also need an 'Expression' command like this:
Expression cpCmndGotoSlide = cpInfoCurrentSlide - 1
Copy link to clipboard
Copied
Thanks, I make a start slide then 10 random question slides, I need to
avoid counting the first slide to get the true number of the question
Copy link to clipboard
Copied
If you use the Progress indicator in Quiz Preferences, it will give you the correct number of the question wherever it is in the file. You have choice between relative and absolute indicator. Why would you create a 'counter' when there is one available out of the box?
Copy link to clipboard
Copied
I need to use customized one to be suitable in my design, can I put
progress indicator in specific position in my design? If yes it will solve
the issue.
Copy link to clipboard
Copied
Move and edit the placeholder in the Quizzing master slides.
Copy link to clipboard
Copied
In HTML5 there is actually a variable already.
window.cpInfoCurrentSlideIndex