Code: Select all
PROMPT "Buy (B) or Sell (S) :" !VAR1 "B"
SET !VAR2 EVAL("var s=\"{{!VAR1}}\"; if(s == \"A\"){\"01\";} else {\"02\"};")
PROMPT {{!VAR2}}
Code: Select all
PROMPT "Buy (B) or Sell (S) :" !VAR1 "B"
SET !VAR2 EVAL("var s=\"{{!VAR1}}\"; if(s == \"A\"){\"01\";} else {\"02\"};")
PROMPT {{!VAR2}}
Code: Select all
...
iret = iimPlay(macro);
alert(iret)
Code: Select all
*ontinue*
Code: Select all
var MyStr = "Test 11 its 22 imacros 33 script";
var num = MyStr.match(/\d+/);
if(num!==null)
{
alert(num[0]);
}
else
{
alert("No numbers found");
}
Code: Select all
TAG POS=1 TYPE=* ATTR=ID:postsubmit