Logic Machine Forum
Value + 200 - 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: Value + 200 (/showthread.php?tid=4261)



Value + 200 - JASK - 23.09.2022

Hi,

Script to retrieve from a group address and send to another GA with - 200 in less value (2 Byte, 9.008)?  Smile


RE: Value + 200 - admin - 24.09.2022

Attach event script to the source object. The script will write event value - 200 to 1/1/1.
Code:
value = event.getvalue()
grp.checkwrite('1/1/1', value - 200)



RE: Value + 200 - JASK - 24.09.2022

(24.09.2022, 06:33)admin Wrote: Attach event script to the source object. The script will write event value - 200 to 1/1/1.
Code:
value = event.getvalue()
grp.checkwrite('1/1/1', value - 200)

ThanksSmile