Unity Products:Amplify Shader Editor/Compare (AEqualsB)

From Amplify Creations Wiki
Jump to: navigation, search

Back to Node List

Compare (A = B) Node

The Compare (A = B) node compares the value set on its A and B and outputs either the result set on True if A is equal to B or False if A is not equal to B.

NOTE: Both True and False input ports can have different data types, but a cast will be made for the type with the most amount of channels. The selected type will also define the output type and define the amount of channels from A and B are to be used on the comparison operation.

Node Parameter Description Default Value
A First value of the comparison operation. Only visible if the respective input port is not connected. 0
B Second value of the comparison operation. Only visible if the respective input port is not connected. 0
True Value to be outputted if comparison is successful. Only visible if the respective input port is not connected. 0
False Value to be outputted if comparison fails. Only visible if the respective input port is not connected. 0


Input Port Description Type
A First value of the comparison operation. Float [1]
B Second value of the comparison operation. Float [1]
True Value to be outputted if comparison is successful. Float [1]
False Value to be outputted if comparison fails. Float [1]

  1. ^ Port automatically adapts to all connection types except Matrices and Sampler types.

Back to Node List