Conditionals Learn how to use if statements and switch statements for conditional logic in Go. Was this page helpful? Thanks for your feedback! Thanks for your feedback! Help us improve this page by using our feedback form.