Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Conditional 'if..else' block.
- if (ConditionA:Boolean)
- {
- // Do this if ConditionA is true.
- }
- else if (ConditionB:Boolean)
- {
- // Do this if ConditionB is true.
- }
- else
- {
- // Do this if both ConditionA and ConditionB are false.
- }
- // The 'for' loop.
- for (ExpressionA; ConditionA:Boolean; ExpressionB)
- {
- // Do the loop while ConditionA is true.
- // Will not run if ConditionA is initially false.
- }
- // The 'while' loop.
- while (ConditionA:Boolean)
- {
- // Do the loop while ConditionA is true.
- // Will not run if ConditionA is initially false.
- }
- // The 'do..while' loop.
- do
- {
- // Do the loop while ConditionA is true.
- // Will run once even if ConditionA is initially false,
- // because the condition is checked at the end of the loop.
- }
- while (ConditionA:Boolean);
Add Comment
Please, Sign In to add comment