|
|
Conditional scalar
This node outputs one or two different scalar values based on a comparison between the input value and another value. This is also known as a conditional, because the output value is conditional on the comparison. The basic form of the comparison is this:
if the input value meets the condition of the comparison output value 1 else (otherwise) output value 2
There are a number of different comparison methods available. The simplest one is "Equal to". Here's an example of what an "Equal to" comparison looks like:
These are our values - comparison value is 5 value 1 is 4 value 2 is 8
if the input value is Equal to the comparison value output value 1 else output value 2
Now let's say the input value was 5. Following through the above we can see that 5 is equal to the comparison value. That means the node will output value 1, which in this case is 4.
If the input value was 20, which is not equal to 5, then the node will output value 2, or 8 in this example.
As you can see, the node is used for switching between values based on the result of the comparison.
Settings:
o Greater than: If the input value is greater than the comparison value the If result will be output. o Greater than or equal to: If the input value is greater than or equal to the comparison value the If result will be output. o Equal to: If the input value is equal to the comparison value the If result will be output. o Not equal to: If the input value is not equal to the comparison value the If result will be output. o Less than: If the input value is less than the comparison value the If result will output. o Less than or equal to: If the input value is less than or equal to the comparison value the If result will be output. o Boolean AND: If the input value and the comparison value are greater than 0 the If result will be output. o Boolean OR: If the input value or the comparison value are greater than 0 the If result will be output.
Error conditions:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|