<reponame>3e45/minpiler
from minpiler.std import L, M

a = 1
if L.switch1.enabled:
    b = 2 * a
    if L.switch2.enabled:
        c = 3 * b * a
        if L.switch3.enabled:
            M.print(c)

# > sensor _sensor__0 switch1 @enabled
# > jump 0 equal _sensor__0 false
# > sensor _sensor__1 switch2 @enabled
# > jump 0 equal _sensor__1 false
# > sensor _sensor__2 switch3 @enabled
# > jump 0 equal _sensor__2 false
# > print 6.0

from minpiler.std import L, M

a = 1
if L.switch1.enabled:
    b = 2 * a
    if L.switch2.enabled:
        c = 3 * b * a
        if L.switch3.enabled:
            M.print(c)

# > sensor _sensor__0 switch1 @enabled
# > jump 0 equal _sensor__0 false
# > sensor _sensor__1 switch2 @enabled
# > jump 0 equal _sensor__1 false
# > sensor _sensor__2 switch3 @enabled
# > jump 0 equal _sensor__2 false
# > print 6.0
# > sensor _sensor__0 switch1 @enabled # > jump 0 equal _sensor__0 false # > sensor _sensor__1 switch2 @enabled # > jump 0 equal _sensor__1 false # > sensor _sensor__2 switch3 @enabled # > jump 0 equal _sensor__2 false # > print 6.0