Skip to main content
Mar 3, 2014 2:11 AM UTC
Solved

how to get the variable's value in an external javascript

Hi,all.

I defined a variable in the Arbortext Editor's command line,such as "$i=5",and I want to get the variable's value in an external javascript,what should I do?

Thanks

    Mar 3, 2014 8:15 AM UTC

    I have already solved the problem.In the javascript,we can use "Acl.eval("i")" to get the variable's value.Wish to help you.

    1 reply

    ptc-5649299AuthorAnswer
    Mar 3, 2014 8:15 AM UTC

    I have already solved the problem.In the javascript,we can use "Acl.eval("i")" to get the variable's value.Wish to help you.