Condition
The members of this class provide nodes for comparisons to make a decision. The result of a comparison is "True" or "False" or, in a bit-wise notation, 0 and 1; it determines which route the graph will follow. When you create a condition you compare two values against each other with an operator. Operators are, for example, "equal to'", "greater than", or "less than or equal to". Conditions cannot only be used with single elements, but also data types which support more than one value – these types are called arrays. A typical array are the position of the data of an emitter's particles. The "FilterBy" nodes have been designed for exactly this purpose. When the condition is fulfilled, the array will only contain the elements that satisfy the given condition. The other, "false", elements are removed.
Nodes
Name | Description |
---|---|
ConditionEqualTo | Condition is evaluated as true if the reference value is equal to the input 'value'. |
ConditionEqualToConstant | Condition is evaluated as true if the reference value is equal to the input 'value'. |
ConditionFilterBy | Filters the input values according to the 'condition'. |
ConditionFilterByEqualTo | Filters the input value according to the 'condition'. |
ConditionFilterByGreaterOrEqual | Filters the input values and returns an array containing only the 'value0' input values, which are greater or equal than the reference 'value1' at the same position. |
ConditionFilterByGreaterThan | Filters the input values and returns an array containing only the 'value0' input values, which are greater than the reference 'value1' at the same position. |
ConditionFilterByLessOrEqual | Filters the input value according to the 'condition'. |
ConditionFilterByLessThan | Filters the input value according to the 'condition'. |
ConditionFilterByNotEqualTo | Filters the input value according to the 'condition'. |
ConditionGeneric | Condition is evaluated as true if the other value is strictly greater than the input 'value'. |
ConditionGreaterOrEqual | Condition is evaluated as true if the other value is greater or equal than the input 'value'. |
ConditionGreaterOrEqualConstant | Condition is evaluated to true, if the other value is greater or equal than the input 'value'. |
ConditionGreaterThan | Condition is evaluated as true if the other value is strictly greater than the input 'value'. |
ConditionGreaterThanConstant | Condition is evaluated as true if the other value is strictly greater than the input 'value'. |
ConditionIf | This node sets its output 'value' to the input 'true value' if the condition bit is set to 'true'. |
ConditionIsZero | Checks if the input elements are zero with respect to the input 'tolerance' value. |
ConditionLessOrEqual | Condition is evaluated as true if the other value is less or equal than the input 'value'. |
ConditionLessOrEqualConstant | Condition is evaluated as true if the other value is less or equal than the input 'value'. |
ConditionLessThan | Condition is evaluated as true if the other value is strictly less than the input 'value'. |
ConditionLessThanConstant | Condition is evaluated as true if the other value is strictly less than the input 'value'. |
ConditionNotEqualTo | Condition is evaluated as true if the other value is not equal to the input 'value'. |
ConditionNotEqualToConstant | Condition is evaluated as true if the other value is not equal to the input 'value'. |
ConditionEqualTo
Condition is evaluated as true if the reference value is equal to the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionEqualToConstant
Condition is evaluated as true if the reference value is equal to the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionFilterBy
Filters the input values according to the 'condition'.
The 'result' is an array reduced by the elements that evaluate the condition as false.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value to check the condition against | ||
condition | Condition | The condition |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | The result after applying the condition | ||
mask | Bit | A mask to apply to other array with the same size to apply the same filter without the need of reevaluation |
ConditionFilterByEqualTo
Filters the input value according to the 'condition'.
The comparison is performed for as many elements as it contains the 'value0' input. If 'value1' size is smaller it's last element is used for the comparison of the remaining elements.
The 'result' is an array without the elements that evaluate the condition as false.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value0 | The left side of the comparison operation | ||
value1 | The right side of the comparison operation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | The result after applying the condition | ||
mask | Bit | A mask to apply to other same size array to apply the same filter without the need of reevaluation |
ConditionFilterByGreaterOrEqual
Filters the input values and returns an array containing only the 'value0' input values, which are greater or equal than the reference 'value1' at the same position.
The comparison is performed for all elements within the 'value0' input. If the size of 'value1' is smaller than 'value0', the last element is used for the comparison of the remaining elements.
The 'result' is an array reduced by the elements that evaluate the condition as false.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value0 | The left side of the comparison operation | ||
value1 | The right side of the comparison operation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | The result after applying the condition | ||
mask | Bit | A mask to apply to other same size array to apply the same filter without the need of reevaluation |
ConditionFilterByGreaterThan
Filters the input values and returns an array containing only the 'value0' input values, which are greater than the reference 'value1' at the same position.
The comparison is performed for all elements within the 'value0' input. If the size of 'value1' is smaller than 'value0', the last element is used for the comparison of the remaining elements.
The 'result' is an array reduced by the elements that evaluate the condition as false.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value0 | The left side of the comparison operation | ||
value1 | The right side of the comparison operation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | The result after applying the condition | ||
mask | Bit | A mask to apply to other same size array to apply the same filter without the need of reevaluation |
ConditionFilterByLessOrEqual
Filters the input value according to the 'condition'.
The comparison is performed for as many elements as it contains the 'value0' input. If 'value1' size is smaller it's last element is used for the comparison of the remaining elements.
The 'result' is an array without the elements that evaluate the condition as false.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value0 | The left side of the comparison operation | ||
value1 | The right side of the comparison operation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | The result after applying the condition | ||
mask | Bit | A mask to apply to other same size array to apply the same filter without the need of reevaluation |
ConditionFilterByLessThan
Filters the input value according to the 'condition'.
The comparison is performed for as many elements as it contains the 'value0' input. If 'value1' size is smaller it's last element is used for the comparison of the remaining elements.
The 'result' is an array without the elements that evaluate the condition as false.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value0 | The left side of the comparison operation | ||
value1 | The right side of the comparison operation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | The result after applying the condition | ||
mask | Bit | A mask to apply to other same size array to apply the same filter without the need of reevaluation |
ConditionFilterByNotEqualTo
Filters the input value according to the 'condition'.
The comparison is performed for as many elements as it contains the 'value0' input. If 'value1' size is smaller it's last element is used for the comparison of the remaining elements.
The 'result' is an array without the elements that evaluate the condition as false.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value0 | The left side of the comparison operation | ||
value1 | The right side of the comparison operation |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
result | The result after applying the condition | ||
mask | Bit | A mask to apply to other same size array to apply the same filter without the need of reevaluation |
ConditionGeneric
Condition is evaluated as true if the other value is strictly greater than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value | ||
type | The type |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionGreaterOrEqual
Condition is evaluated as true if the other value is greater or equal than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionGreaterOrEqualConstant
Condition is evaluated to true, if the other value is greater or equal than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionGreaterThan
Condition is evaluated as true if the other value is strictly greater than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionGreaterThanConstant
Condition is evaluated as true if the other value is strictly greater than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionIf
This node sets its output 'value' to the input 'true value' if the condition bit is set to 'true'.
Otherwise, the output is set to 'false'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Bit | The condition | |
true value | All | The true value | |
false value | All | The false value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | All | The value |
ConditionIsZero
Checks if the input elements are zero with respect to the input 'tolerance' value.
For every input position equal to zero the output mask's bit is set to 1.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value to check if is zero | ||
tolerance | Real | The tolerance |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
mask | Bit | A mask to apply to other same size array to apply the same filter without the need of reevaluation |
ConditionLessOrEqual
Condition is evaluated as true if the other value is less or equal than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionLessOrEqualConstant
Condition is evaluated as true if the other value is less or equal than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionLessThan
Condition is evaluated as true if the other value is strictly less than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionLessThanConstant
Condition is evaluated as true if the other value is strictly less than the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionNotEqualTo
Condition is evaluated as true if the other value is not equal to the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |
ConditionNotEqualToConstant
Condition is evaluated as true if the other value is not equal to the input 'value'.
Inputs
Name | Types | PassThrough | Description |
---|---|---|---|
value | The value |
Outputs
Name | Types | PassThrough | Description |
---|---|---|---|
condition | Condition | The condition |