Logic Machine Forum
Resident script grp.checkwrite question - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: Resident script grp.checkwrite question (/showthread.php?tid=3490)



Resident script grp.checkwrite question - MantasJ - 26.07.2021

Hello,

I have a resident script like this:

grp.checkwrite('Test1', true, 0, grp.getvalue('Test1_Status'))

It has to write "True" to "Test1" if "Test1_Status" value differs from value "True". What actually happens is it sends "True" one time, once the resident script starts, but then if the "Test1_Status" doesn't change and stay at "False" it doesn't repeat value "True" every time resident script repeats. Whats going on here? Am I missing something?  Confused


RE: Resident script grp.checkwrite question - Daniel - 26.07.2021

Do it like this
Code:
grp.checkwrite('Test1', true, 0, 'Test1_Status')



RE: Resident script grp.checkwrite question - MantasJ - 26.07.2021

Wow, thanks! Big Grin