@name Global Variable Network
@inputs On 
@outputs Self
@persist
gSetGroup("Network")
A = gGetNum("A")
B = gGetNum("B")
C = gGetNum("C")
D = gGetNum("D")
E = gGetNum("E")
F = gGetNum("F")

if (!On) {
Self = 0 
A = 0 B = 0 C = 0 D = 0 E = 0 F = 0
}

if (On & Self==0 & A==0) {Self = 1 A = 1}
if (On & Self==0 & B==0) {Self = 2 B = 2}
if (On & Self==0 & C==0) {Self = 3 C = 3}
if (On & Self==0 & D==0) {Self = 4 D = 4}
if (On & Self==0 & E==0) {Self = 5 E = 5}
if (On & Self==0 & F==0) {Self = 6 F = 6}

gSetNum("A",A)
gSetNum("B",B)
gSetNum("C",C)
gSetNum("D",D)
gSetNum("E",E)
gSetNum("F",F)
