Guest User

Untitled

a guest
Apr 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. sub condition()
  2.  
  3. dim x as integer : x = 5
  4. dim y as integer : y = 10
  5.  
  6. if x > y then
  7. ' if condition is True
  8. msgbox(x & " is greater than " & y)
  9. else if y = 15 then
  10. ' if previous condition is False and this one is True
  11. msgbox(y & " is egual to 15")
  12. else
  13. ' if none of the previous conditions is True
  14. msgbox(x & " is lower than " & y)
  15. end if
  16.  
  17. end sub
Add Comment
Please, Sign In to add comment