Wiremod expression2 help

So iused to use expression1 cause i liked it better but it would seem times are changing an the crew for wiremod are going to remove it soon. I need help getting this following expression switch because i do not know how to use expression2

Filename: Chevron
Lable: Chevron
Inputs: Chevron Active Income
Outputs: C1 C2 C3 C4 C5 C6 C7 SGC Income Iris
Line 01: Active -> SGC = 1;
Line 02: Chevron == 1 -> C1 = 1;
Line 03: Chevron == 2 -> C2 = 1;
Line 04: Chevron == 3 -> C3 = 1;
Line 05: Chevron == 4 -> C4 = 1;
Line 06: Chevron == 5 -> C5 = 1;
Line 07: Chevron == 6 -> C6 = 1;
Line 08: Chevron == 7 -> C7 = 1;
Line 09: Active == 0 -> SGC = 0;
Line 10: Income -> Income = 1;
Line 11: Income == 0 -> Income = 0;
Line 12: Income -> Iris = 1;
Line 13: Chevron == 0 -> C1 = 0, C2 = 0, C3 = 0, C4 = 0, C5 = 0, C6 = 0, C7 = 0;
Line 14: Income == 0 -> Iris = 0;
Line 15: Income -> C1 = 0, C2 = 0, C3 = 0, C4 = 0, C5 = 0, C6 = 0, C7 = 0;

“SGC”, “Income” and “Iris” are completely useless since you can just wire them directly to the gate itself.


@name Chevron
@inputs Chevron Inbound
@outputs C1 C2 C3 C4 C5 C6 C7
@persist
@trigger all
if (!Inbound) {
if (Chevron == 1) {C1 = 1}
if (Chevron == 2) {C2 = 1}
if (Chevron == 3) {C3 = 1}
if (Chevron == 4) {C4 = 1}
if (Chevron == 5) {C5 = 1}
if (Chevron == 6) {C6 = 1}
if (Chevron == 7) {C7 = 1}
if (Chevron == 0) {C1 = C2 = C3 = C4 = C5 = C6 = C7 = 0}
}


Edit: Why do you want the lights not to light up on inbound?