17.03.2017, 16:12
Hello !
I am actually able to put a lua value into a js variable using a piece of code that i found on this forum :
var js_variable = '<? write(lua_variable) ?>'
If someone could explain to me what is this write function ... and why don't we need the ';' here ?
Also, i would like to do the opposite but when i try something like :
'<? lua_variable ?>' = js_variable;
That does not work...
Thx for help !
I am actually able to put a lua value into a js variable using a piece of code that i found on this forum :
var js_variable = '<? write(lua_variable) ?>'
If someone could explain to me what is this write function ... and why don't we need the ';' here ?
Also, i would like to do the opposite but when i try something like :
'<? lua_variable ?>' = js_variable;
That does not work...
Thx for help !