layout |
---|
default |
Example demonstrates different boolean expressions in Go like ||,&&,!. Click here to learn more
func main() {
fmt.Println("true && false = ", (true && false))
fmt.Println("true || false = ", (true || false))
fmt.Println("!true = ", !true)
}
true && false = false
true || false = true
!true = false
<< Home Page | Previous << Recursion | Next >> Comparison Operators