Guest User

Untitled

a guest
May 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. ## If / else statements.
  2.  
  3. ## In Ruby <3
  4. var.size > 0 "This item was more than zero!" : "This item is empty :<"
  5.  
  6. ## In PHP
  7. if(mysql_num_rows($var) > 0) {
  8. return "yeah there are rows";
  9. } else {
  10. return "no rows! fail!";
  11. }
Add Comment
Please, Sign In to add comment