Grokking Go
0% completed
Go - continue Statement
The continue statement in Go is used to skip the current iteration of a loop and move directly to the next iteration. It is useful when certain conditions require skipping specific values without exiting the loop entirely.
When continue is encountered, the loop does not execute the remaining statements in the current iteration and immediately moves to the next iteration.
Syntax of the continue Statement
for condition { if someCondition { continue // Skips this iteration and moves to the next }
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%