Perform comparison operations between two input values
==
: Equal to!=
: Not equal to<
: Less than>
: Greater than<=
: Less than or equal to>=
: Greater than or equal toand
: Logical ANDor
: Logical ORxor
: Logical XORnand
: Logical NANDnor
: Logical NORxnor
: Logical XNORComparison Function
to >
.5
and the other with the value 3
.A
and B
inputs of the Compare Block respectively.true
, because 5 is greater than 3.==
comparison: Returns true
if B is also not provided, false
otherwise!=
comparison: Returns true
if B is provided, false
otherwisefalse
B
) to the type of the first input (A
).
What happens if the inputs are not of the same type?
B
) to the type of the first input (A
). If the coercion is not possible, the comparison will be performed with the original values.Can I use the Compare Block to compare arrays or objects?