17.02.2021, 15:02
admin script would do this but here is version for beginners
Code:
fMode1 = grp.getvalue('1/1/1')
fMode2 = grp.getvalue('1/2/1')
if (fMode1 == 1 and fMode2 == 1) then
grp.checkwrite('32/1/6', 1)
else
grp.checkwrite('32/1/6', 0)
end
if (fMode1 == 2 and fMode2 == 2) then
grp.checkwrite('32/1/7', 1)
else
grp.checkwrite('32/1/7', 0)
end
------------------------------
Ctrl+F5
Ctrl+F5