if/else statements in Lua.Run()?
Posted: Fri Oct 21, 2022 4:36 am
Hi Tony!
Is it possible to execute if/else statements in a Lua.Run() call?
I tried checking in the Lua Console if I could run something like "if Variable['myVar'] == 100 then Variable['myOtherVar'] = true" and "if (Variable['myVar'] == 100) Variable['myOtherVar'] = true" but to no avail.
No big deal if it's not possible, but if there was a way to do so I could greatly benefit it
Thanks in advance!
Is it possible to execute if/else statements in a Lua.Run() call?
I tried checking in the Lua Console if I could run something like "if Variable['myVar'] == 100 then Variable['myOtherVar'] = true" and "if (Variable['myVar'] == 100) Variable['myOtherVar'] = true" but to no avail.
No big deal if it's not possible, but if there was a way to do so I could greatly benefit it
Thanks in advance!