Need help coding E2


@name Face Life-Support
@inputs S:wirelink Up Down Enter O H N CO2 H20 D2O CH4 C3H8 D Triton
@outputs Sreset O1 O2 H1 H2 N1 N2 CO21 CO22 Energy H2O1 H2O2 H2O3 H2O4 D2O1 D2O2 D2O3 D2O4 D2O5 Gasext1 Gasext2 Gasext3 Gaspro1 Gaspro2 Gaspro3
@persist Inc L1 L2 L3 L4 L5 L6 L7 L8 L9 L10 Current Timer
@trigger 

#General

if(Sreset == 1) {Timer = 1}
if(Timer == 1) {interval(100), Sreset = 0, Timer = 0}


if ( Up ) { 
    interval(250)
    Inc = Inc - 1 
    }
elseif ( Down ) {
    interval(250)
    Inc = Inc + 1 
}

S:writeString("Up",28,6,999,0)
S:writeString("Down",26,9,999,0)
S:writeString("Enter",25,12,50,0)

#Main Menu

if ( Current == 0 ) {}
    S:writeString("Face Life-Support",0,0,999,0)
    S:writeString("Life Systems   ",0,7,999,L1)
    S:writeString("Gas Systems    ",0,8,999,L2)

    if ( Inc == 0 ) {
        L1 = 900
        L2 = 0
        if ( Enter ) {
            interval(250)
            Inc = 0
            Current = 1
            Sreset = 1
        }
    } 
        elseif ( Inc == 1 ) {
            L1 = 0
            L2 = 900
            if ( Enter ) {
                interval(250)
                Inc = 0
                Current = 11
                Sreset = 1
            }
        }
    if ( Inc < 0 ) {
        Inc = 1
        }
        elseif ( Inc > 1 ) {
            Inc = 0
            }

#Life Systems Menu

elseif ( Current == 1 ) {
    S:writeString("Life Systems  ",4,0,999,0)
    S:writeString("Oxygen        ",0,2,999,L1)
    S:writeString("Nitrogen      ",0,3,999,L2)
    S:writeString("Carbon Dioxide",0,4,999,L3)
    S:writeString("Hydrogen      ",0,5,999,L4)
    S:writeString("Water         ",0,6,999,L5)
    S:writeString("Heavy Water   ",0,7,999,L6)
    S:writeString("Energy        ",0,8,999,L7)
    S:writeString("Environment   ",0,9,999,L8)
    S:writeString("Gravity       ",0,10,999,L9)
    S:writeString("Main Menu",0,13,999,L10)
}

    if ( Inc == 0 ) { 
        L1 = 900 
        if ( Enter ) {
                interval(250)
                Current = 2
                Inc = 0
                Sreset = 1
        } 
    } else { L1 = 0 }
    if ( Inc == 1 ) { 
        L2 = 900
        if ( Enter ) {
                interval(250)
                Current = 3
                Inc = 0
                Sreset = 1
        } 
    } else { L2 = 0 }
    if ( Inc == 2 ) { 
        L3 = 900
        if ( Enter ) {
                interval(250)
                Current = 4
                Inc = 0
                Sreset = 1
        } 
    } else { L3 = 0 }
    if ( Inc == 3 ) { 
        L4 = 900
        if ( Enter ) {
                interval(250)
                Current = 5
                Inc = 0
                Sreset = 1
        } 
    } else { L4 = 0 }
    if ( Inc == 4 ) { 
        L5 = 900
        if ( Enter ) {
                interval(250)
                Current = 6
                Inc = 0
                Sreset = 1
        } 
    } else { L5 = 0 }
    if ( Inc == 5 ) { 
        L6 = 900
        if ( Enter ) {
                interval(250)
                Current = 7
                Inc = 0
                Sreset = 1
        } 
    } else { L6 = 0 }
    if ( Inc == 6 ) { 
        L7 = 900
        if ( Enter ) {
                interval(250)
                Current = 8
                Inc = 0
                Sreset = 1
        } 
    } else { L7 = 0 }
    if ( Inc == 7 ) { 
        L8 = 900
        if ( Enter ) {
                interval(250)
                Current = 9
                Inc = 0
                Sreset = 1
        } 
    } else { L8 = 0 }
    if ( Inc == 8 ) { 
        L9 = 900
        if ( Enter ) {
                interval(250)
                Current = 10
                Inc = 0
                Sreset = 1
        }
    } else { L9 = 0 }
    if ( Inc == 10 ) { 
        L10 = 900
        if ( Enter ) {
                interval(250)
                Current = 0
                Inc = 0
                Sreset = 1
            } 
    } else { L10 = 0 }
    if ( Inc < 0 ) {
        Inc = 9
        }
        elseif ( Inc > 9 ) {
            Inc = 0
            }


This is my Expression 2 for a console screen control over my ships life support in space build. I don’t know what I did wrong but, when ever I press enter it just restarts the screen. When I go into the menu it thinks I am in the main menu still. How can I fix this?

PS. This is my first time useing Expression 2 and Facepunch; I have played GMOD for 3 years.