Lua function string.find() not working
Posted: Wed May 03, 2017 3:40 am
Hello,
First of all thanks for this amazing tool, spared us a lot of time and energy !
I'm facing a curious problem when trying to call the lua function : string.find() as a node condition.
For exemple :
Seems to return false. When I call it in script :
=> HasReturnValue is always false. What is the correct synthax for the equivalent of c# method "string.contains" in Lua ?
(What I am trying to do is check if a Lua variable contains a specified string.)
First of all thanks for this amazing tool, spared us a lot of time and energy !
I'm facing a curious problem when trying to call the lua function : string.find() as a node condition.
For exemple :
Code: Select all
string.find("dog", "dog")
Code: Select all
Lua.Run("string.find(\"dog\", \"dog\")");
(What I am trying to do is check if a Lua variable contains a specified string.)