Created
June 11, 2015 09:04
-
-
Save anonymous/af362ec2bce2338cbea6 to your computer and use it in GitHub Desktop.
This file contains 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
contacts = [ | |
['shahryar', 'tavakkoli', '09213380329'], | |
['arash','ebrahimi','09368094936'] | |
] | |
for i in contacts | |
if i[0] == 'shahryar' && i[1] == 'tavakkoli' then | |
puts "#{i[1]}\t\t#{i[2]}" | |
break | |
else | |
puts "user doesn't exist!" | |
break | |
end | |
end | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment