Skip to content

Instantly share code, notes, and snippets.

@ivangodfather
Last active October 8, 2015 12:58
Show Gist options
  • Select an option

  • Save ivangodfather/efaff3a4d818c1982303 to your computer and use it in GitHub Desktop.

Select an option

Save ivangodfather/efaff3a4d818c1982303 to your computer and use it in GitHub Desktop.
var myVar: Int?
guard (myVar != nil) else {
myVar = 1 //How i can continue here after setting a value?
continue // continue is only allowd inside a loop
}
print(myVar) //i want 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment