Hi,
I have a problem with own code JavaScript. It doesn't return any value in ProjectMaker...
The code is the following:
Can you tell me what is wrong?
I found a thread on this forum where an answer for value returning problem was to put at the end the variable which needs to be returned.
I also tried to put the ZP variable in '' like this: '{-Variable.page_text-}' - no effect either.
I tried the code in JavaScript tester - it worked fine (without the ZP variable, of course).
Help me!
I have a problem with own code JavaScript. It doesn't return any value in ProjectMaker...
The code is the following:
Код:
var text = {-Variable.page_text-};
var len = text.length;
var wait = Math.floor(len / 1000 + (Math.random() * 10 + 1));
if (wait < 2)
wait = 2;
wait;
I found a thread on this forum where an answer for value returning problem was to put at the end the variable which needs to be returned.
I also tried to put the ZP variable in '' like this: '{-Variable.page_text-}' - no effect either.
I tried the code in JavaScript tester - it worked fine (without the ZP variable, of course).
Help me!