

How to display and control the results of multiplications in columns with Captivate.
…
Hello Captivaters !…
This time I work with multiplications in columns… General style is “Nombre_A” x “Nombre_B” = “Nombre_C”

I define the numbers with JavaScript. They are randomized.
window.cpAPIInterface.setVariableValue(“Nombre_A”, Math.floor(Math.random()*900)+100);
window.cpAPIInterface.setVariableValue(“Nombre_B”, Math.floor(Math.random()*90)+10);
And use Expression to define Nombre_C (Expression => Nombre_C = Nombre_A * Nombre_B)
I use the “scrolling text” widget to display the answers, as we can’t align the text in the TEB to the right.
I control the results with conditional actions.
Happy Captivating !…
…
…
Hello Captivaters !…
This time I work with multiplications in columns… General style is “Nombre_A” x “Nombre_B” = “Nombre_C”

I define the numbers with JavaScript. They are randomized.
window.cpAPIInterface.setVariableValue(“Nombre_A”, Math.floor(Math.random()*900)+100);
window.cpAPIInterface.setVariableValue(“Nombre_B”, Math.floor(Math.random()*90)+10);
And use Expression to define Nombre_C (Expression => Nombre_C = Nombre_A * Nombre_B)
I use the “scrolling text” widget to display the answers, as we can’t align the text in the TEB to the right.
I control the results with conditional actions.
Happy Captivating !…
…
You must be logged in to post a comment.

- Most Recent
- Most Relevant