JS For Loop in Advanced Actions
Using Captivate 8.01.
If I place the following code to "Execute JavaScript" for the "On Success" property of a button works fine. But if I try to add it to an Advanced Action, it doesn't take the code unless I remove the For loop. This is just a simple timer loop. Don't understand what's going on here. Any ideas? Thanks.
var inc =0;
var inc1 = window.cpAPIInterface.getVariableValue('countNo'); // Reads Cp variable
inc1 = Number(inc1);
inc1 = inc1 + 1;
// For loop
for (var i = 0; i < 50000000; i++) {
inc = inc + 1;
}
window.cpAPIInterface.setVariableValue('countNo', inc1); // Returns Cp variable
