Advertisement
tinyevil

Untitled

Mar 28th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. maybe function FindUserPhone(name){
  2. connection = unwrap connect_to_server();
  3. user_id = unwrap connection.find_user_by_name(name);
  4.  
  5. return connection.find_phone_by_user_id(user_id);
  6. }
  7.  
  8.  
  9.  
  10. function FindUserPhone(name){
  11. connection = connect_to_server();
  12. if ( !connection ){
  13. return;
  14. }
  15. user_id = connection.find_user_by_name(name);
  16. if ( !user_id ){
  17. return;
  18. }
  19.  
  20. return connection.find_phone_by_user_id(user_id);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement