Page 1 of 1

variable 'macro' used inside js inline

Posted: Wed Sep 14, 2016 1:11 pm
by pf shadoko
hello,

is there a way to do this kind of thing with a macro ?

Code: Select all

Macro test(nn)
    !v_nn=1;
EndMacro

test(n)
Debug n

Re: variable 'macro' used inside js inline

Posted: Wed Sep 14, 2016 5:38 pm
by Sirius-2337

Code: Select all

Macro test(nn)
    !v_#nn = 1;
EndMacro

test(n)
Debug n

Re: variable 'macro' used inside js inline

Posted: Thu Sep 15, 2016 7:14 am
by pf shadoko
thank you