github.com/gmemcc/yaegi@v0.12.1-0.20221128122509-aa99124c5d16/_test/if3.go (about)

     1  package main
     2  
     3  func main() {
     4  	a := 0
     5  	if false {
     6  		println("false")
     7  		a = 1
     8  	} else {
     9  		println("true")
    10  		a = -1
    11  	}
    12  	println(a)
    13  }
    14  
    15  // Output:
    16  // true
    17  // -1