Boolean NOT Scalar: Difference between revisions
jrfconvert import |
No edit summary |
||
| Line 4: | Line 4: | ||
[[Image:drex_module_124_image_0.png|485pxpx|Boolean NOT Scalar]] | [[Image:drex_module_124_image_0.png|485pxpx|Boolean NOT Scalar]] | ||
__NOTOC__ | __NOTOC__ | ||
< | |||
'''Node Description & Purpose: ''' The Boolean NOT scalar node is a very simple one which performs a Boolean NOT operation on the Input value. A Boolean has a value of either 1 or 0. A Boolean NOT operation simply flips the value : | |||
0 '''becomes''' 1<br /> 1 '''becomes''' 0 | |||
The Boolean NOT scalar node is intended to be used with other Boolean nodes. However if a non-Boolean value is input to the node then it is converted to 0 if the input value equals 0, and 1 if the input value is not equal to 0. As an example: | |||
'''Input''' of 0 '''becomes''' 0<br />'''Input''' of 0.5 '''becomes''' 1<br />'''Input''' of 2 '''becomes''' 1<br />'''Input''' of -0.5 '''becomes''' 1 | |||
The Boolean NOT operation is then performed on the converted value. If you want more control over the conversion of scalar values to Boolean scalar values then you should use the Scalar to Boolean scalar node. | |||
'''Node Type: '''Function | |||
'''Settings: '''<br /> This node has no other settings apart from the '''Input''' node. | |||
'''Error conditions:'''<br /> | |||
'''Input''' | |||
Revision as of 04:05, 11 July 2010
Boolean NOT Scalar
Node Description & Purpose: The Boolean NOT scalar node is a very simple one which performs a Boolean NOT operation on the Input value. A Boolean has a value of either 1 or 0. A Boolean NOT operation simply flips the value :
0 becomes 1
1 becomes 0
The Boolean NOT scalar node is intended to be used with other Boolean nodes. However if a non-Boolean value is input to the node then it is converted to 0 if the input value equals 0, and 1 if the input value is not equal to 0. As an example:
Input of 0 becomes 0
Input of 0.5 becomes 1
Input of 2 becomes 1
Input of -0.5 becomes 1
The Boolean NOT operation is then performed on the converted value. If you want more control over the conversion of scalar values to Boolean scalar values then you should use the Scalar to Boolean scalar node.
Node Type: Function
Settings:
This node has no other settings apart from the Input node.
Error conditions:
Input
