Core API Reference: Code Flow Control
From Color Infection Wiki
Contents |
Return
Stop calling the following commands in a function.
Input Parameters:
- (none)
Output Parameters:
- (none)
Return If True
Stop calling the following commands in a function if the input boolean value is true.
Input Parameters:
- Bool Value
- the boolean value
Output Parameters:
- (none)
Return If False
Stop calling the following commands in a function if the input boolean value is false.
Input Parameters:
- Bool Value
- the boolean value
Output Parameters:
- (none)
Commend Line
A commend line to explain what the following code lines do
Input Parameters:
- Comment Text
- the comment body text
Output Parameters:
- (none)
Blank Line
Just a blank line to keep good code readability
Input Parameters:
- (none)
Output Parameters:
- (none)
If
Start the first part of a if-block
Input Parameters:
- Condition Result
- the condition result
- Comparer
- if the the condition result equals the comparer value, then the code in the first part of the if-block will be executed, otherwise, the second part of the if-block (the else part) will be executed
Output Parameters:
- (none)
Else
Start the second part of a if-block
Input Parameters:
- (none)
Output Parameters:
- (none)
End If
End a if-block
Input Parameters:
- (none)
Output Parameters:
- (none)
While
Start a while-loop-block
Input Parameters:
- Condition Result
- the condition result
- Comparer
- if the the condition result equals the comparer value, then the code in the while-block will be executed;
Output Parameters:
- (none)
Break
Jump the end of a loop block.
Input Parameters:
- (none)
Output Parameters:
- (none)
Continue
Jump to the start of a loop block.
Input Parameters:
- (none)
Output Parameters:
- (none)
End While
End a while-block
Input Parameters:
- (none)
Output Parameters:
- (none)