Skip to content

Instantly share code, notes, and snippets.

@pokonski
Created February 17, 2012 20:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pokonski/1855265 to your computer and use it in GitHub Desktop.
Save pokonski/1855265 to your computer and use it in GitHub Desktop.
jakis_odgorny_warunek = "a"
def costam
for element in list
if jakis_odgorny_warunek == "a"
# zrob cos 1
else
# zrob cos 2
end
end
end
# Ale mozna tak:
jakis_odgorny_warunek = "a"
if jakis_odgorny_warunek == "a"
def costam
for element in list
# zrob cos 1
end
end
else
def costam
for element in list
# zrob cos 2
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment