This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Js variables & Lua variables
#1
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 !
Reply


Messages In This Thread
Js variables & Lua variables - by Jonathan - 17.03.2017, 16:12
RE: Js variables & Lua variables - by admin - 23.03.2017, 06:59

Forum Jump: