Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

how to take cpInfoCurrentSlide system variable into user variable and subtract one to get the real number of the current slide.

New Here ,
Apr 04, 2016 Apr 04, 2016

how to take cpInfoCurrentSlide system variable into user variable and subtract one to get the real number of the current slide.

787
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2016 Apr 04, 2016

Use either a Standard or Conditional Action and choose the Expression action. It will allow you to perform subtraction from a variable value.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2016 Apr 04, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 04, 2016 Apr 04, 2016

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2016 Apr 04, 2016

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Apr 04, 2016 Apr 04, 2016

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Apr 04, 2016 Apr 04, 2016
LATEST

Move and edit the placeholder in the Quizzing master slides.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Apr 04, 2016 Apr 04, 2016

In HTML5 there is actually a variable already.

window.cpInfoCurrentSlideIndex

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources