Copy link to clipboard
Copied
Hello 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?
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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:
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Mit Sachertorte in Cafe Sacher or Demel? I love Wien, although it has been a while since I was there for a Meisterkurs.
Copy link to clipboard
Copied
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.