Guest User

Untitled

a guest
Jun 21st, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. // Conditional 'if..else' block.
  2. if (ConditionA:Boolean)
  3. {
  4. // Do this if ConditionA is true.
  5. }
  6. else if (ConditionB:Boolean)
  7. {
  8. // Do this if ConditionB is true.
  9. }
  10. else
  11. {
  12. // Do this if both ConditionA and ConditionB are false.
  13. }
  14.  
  15. // The 'for' loop.
  16. for (ExpressionA; ConditionA:Boolean; ExpressionB)
  17. {
  18. // Do the loop while ConditionA is true.
  19. // Will not run if ConditionA is initially false.
  20. }
  21.  
  22. // The 'while' loop.
  23. while (ConditionA:Boolean)
  24. {
  25. // Do the loop while ConditionA is true.
  26. // Will not run if ConditionA is initially false.
  27. }
  28.  
  29. // The 'do..while' loop.
  30. do
  31. {
  32. // Do the loop while ConditionA is true.
  33. // Will run once even if ConditionA is initially false,
  34. // because the condition is checked at the end of the loop.
  35. }
  36. while (ConditionA:Boolean);
Add Comment
Please, Sign In to add comment