我如何使用提示输入宏的循环数

How can i use Prompt to enter number of loops for macros

我遇到了此类错误 SyntaxError: missing ; before 语句,第 11 行(错误代码:-991)。

这是我的宏,

play = "PROMPT 'How many times to play macros?:'" !VAR1 + "\n";

for (i = 0; i < play; i++) {
    start = iimPlay(macros);
}

您必须像这样使用 JavaScript 'prompt' 对话框:

var play = 1;       // default number
play = prompt("How many times to play macros?:", play);