Get Set Learn Go
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
Try It Out | Source code |
« Home Page | Previous « Recursion | Next » Comparison Operators |