29.01.2020, 11:28
This script is incorrect. grp.read sends read request but does not return current value. You need to use grp.getvalue instead.
It can also be simplified like this:
In FBeditor there's Select switch > Lock out block that can be used.
It can also be simplified like this:
Code:
value = event.getvalue()
blocking = grp.getvalue('0/0/1')
if blocking then
grp.write('0/0/2', value)
end
In FBeditor there's Select switch > Lock out block that can be used.