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

Searching for correct typing literal values for cpinfocurrentdatestringddmmyyyy variable in script

Explorer ,
Mar 31, 2017 Mar 31, 2017

literaldatevalue.gifHello dear Adobe Captivate experts! I' would like to spend learner every day a new Training if they click on a Picture. I created a script and I use the variable cpinfocurrentdatestringddmmyyyy. That it works correct, I Need the literal values for the entries. Would somebody mind sending me a solution? As an example: What's about the first April? 01/04/2017 or 1/4/2017?

343
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

correct answers 1 Correct answer

Community Expert , Mar 31, 2017 Mar 31, 2017

It will be 01, but that doesn't matter for a mathematical operator: 01 or 1 is the same....

You can also combine cpInfoCurrentDay (number 1-7) and cpInfoCurrentMonth (1-12) for the condition.

   

Translate
Community Expert ,
Mar 31, 2017 Mar 31, 2017

Gerhard, it has not much sense to use the operator 'greater or equal' with a string, you need a number or use only 'equal to'. Do you need the 'greater'? I would have to search for a proper solution with the other date variables.  Can you explain exactly what you want to check?

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
Explorer ,
Mar 31, 2017 Mar 31, 2017

Thank you very much for so quick answering. I would like to create a game. There are 10 eggs. And behind every egg is a Hyperlink to a Training. On Monday the Training is about "XX", on Tuesday the Training is about "YYY". So it's very day different. But the Trainings before the current date should been visible. But I'll try it with the day System variable. That maybe a good idea. Kind regards from Austria by Gerhard.

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 ,
Mar 31, 2017 Mar 31, 2017

cpInfoCurrentDay results in a number: today (Friday) is number 6. If you schedule indeed in one week, that is without any doubt the best choice.

BTW Did you download my descriptive table with system variables? You find it under this blog post:

System variables in Captivate 8/9 - Captivate blog

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
Explorer ,
Mar 31, 2017 Mar 31, 2017

The variable $$cpInfoCurrentDate$$ delivered the day as number. On 31st of march the number is 31. But what is the number on 1st of April? 01 or 1? That's 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 ,
Mar 31, 2017 Mar 31, 2017

That system variable cpInfoCurrentDay is just linked to the week: tomorrow will be 7 if you have 6 today. It is not at all linked with the month.

You need that table.... I would not use cpInfoCurrentDate.

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
Explorer ,
Mar 31, 2017 Mar 31, 2017

O.k. And what value delivers the variable$$cpInfoCurrentDate$$ On 31st of march the number is 31. But what is the number on 1st of April? 01 or 1? Would you mind sending me another expert answere?

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 ,
Mar 31, 2017 Mar 31, 2017

It will be 01, but that doesn't matter for a mathematical operator: 01 or 1 is the same....

You can also combine cpInfoCurrentDay (number 1-7) and cpInfoCurrentMonth (1-12) for the condition.

   

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
Explorer ,
Mar 31, 2017 Mar 31, 2017

Thank you very much. It was very helpful! Kind regards from Austria! The next vienna coffee is reserved. Let me know, if you are in Vienna! Kind regards from Austria by Gerhard.

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 ,
Mar 31, 2017 Mar 31, 2017
LATEST

Mit Sachertorte in Cafe Sacher or Demel? I love Wien, although it has been a while since I was there for a Meisterkurs.

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
Explorer ,
Mar 31, 2017 Mar 31, 2017

The variable $$cpInfoCurrentDate$$ delivered the day as number. On 31st of march the number is 31. But what is the number on 1st of April? 01 or 1? That's 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
Resources
Help resources