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.

Simple Script "less than" help
#3
(31.10.2018, 13:40)admin Wrote: Variable names cannot have minus signs in them, because it's a math operator.

Code:
INPUT_A = grp.getvalue('63/1/1')
INPUT_B = grp.getvalue('6/2/11')

if INPUT_A < INPUT_B then
 grp.write('1/0/108', false)
end

Sorry. I wrote it wrong in the tread. Should have been INPUT_A and INPUT_B as it is in my script.
The way you write it is working fine, but i want to have the output as a variable. Is that not possible in LUA?
Reply


Messages In This Thread
Simple Script "less than" help - by Kai-Roger - 31.10.2018, 13:33
RE: Simple Script "less than" help - by admin - 31.10.2018, 13:40
RE: Simple Script "less than" help - by Kai-Roger - 31.10.2018, 13:45
RE: Simple Script "less than" help - by admin - 31.10.2018, 14:03

Forum Jump: