Skip to content

Instantly share code, notes, and snippets.

Created June 11, 2015 09:04
Show Gist options
  • Save anonymous/af362ec2bce2338cbea6 to your computer and use it in GitHub Desktop.
Save anonymous/af362ec2bce2338cbea6 to your computer and use it in GitHub Desktop.
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