Created
February 17, 2012 20:28
-
-
Save pokonski/1855265 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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