Core API Reference: Boolean
From Color Infection Wiki
Contents |
= (Assign Boolean)
Assign a boolean.
Input Parameters:
- Source Boolean
- the source value
Output Parameters:
- Target Boolean
- the target
=? (Condition Assign Boolean)
Assign a boolean by the result of a condition.
Input Parameters:
- Condition Result
- the condition result
- Source Boolean 1
- if the condition result is true, this value will be used.
- Source Boolean 2
- if the condition result is false, this value will be used.
Output Parameters:
- Target Boolean
- the target
Swap Boolean Values
Swap two boolean values. The parameters shouldn't be direct values. If direct values are passed as parameters, their values will be always not changed.
Input Parameters:
- Boolean 1
- one boolean value
- Boolean 2
- another boolean value
Output Parameters:
- (none)
Boolean 1 == Boolean 2?
Whether or not two boolean are equal.
Input Parameters:
- Boolean 1
- one boolean
- Boolean 2
- another boolean
Output Parameters:
- Result
- the result
Boolean to String
Convert a boolean value to a string.
Input Parameters:
- The Boolean
- the boolean
Output Parameters:
- Result
- the result string
&& (Logical And)
Logical and operation. If both the 2 input boolean values are true, then the result is true. If either of the 2 input boolean values is false, then the result is false.
Input Parameters:
- Boolean 1
- one boolean value
- Boolean 2
- another boolean value
Output Parameters:
- Result
- the result
|| (Logical Or)
Logical or operation. If either the 2 input boolean values is true, then the result is true. If both of the 2 input boolean values are false, then the result is false.
Input Parameters:
- Boolean 1
- one boolean value
- Boolean 2
- another boolean value
Output Parameters:
- Result
- the result
! (Logical Not)
Invert a boolean value.
Input Parameters:
- Input Boolean Value
- the input value
Output Parameters:
- Result
- the result
^ (Logical Xor)
Logical xor operation. If the 2 input boolean values are not equal, then the result is true. If the 2 input boolean values are equal, then the result is false.
Input Parameters:
- Boolean 1
- one boolean value
- Boolean 2
- another boolean value
Output Parameters:
- Result
- the result