Community Forum

Using LUA tostring function

Forum Overview >> Scripting

CategoryScripting
Created03.12.2009 22:01


Claudio Accotardi (Unknown) 03.12.2009 22:02
Hi at all,
I have this problem.
I want to print at console the resoult of this function:

getUserAttribute(itemNode, "isStrawbale")

If I write this code:
print("getUserAttribute(itemNode, "isStrawbale")");
into console I have the error what this function return a value boolean.
Any people can help me?
Thanks in advance
Best regards

Stefan Geiger - GIANTS Software 04.12.2009 21:53
You can use
print(tostring(getUserAttribute(itemNode, "isStrawbale")));

Claudio Accotardi (Unknown) 06.12.2009 13:39
Thanks Mr. Geiger,
I try it now.
Best regards



Note: Log in to post. Create a new account here.