eq

SpecialNodes eq

input ports:
Name Type Description Optional

a

?0

first comparand

no

b

?0

second comparand

no

output ports:
Name Type Description Optional

c

bool

true if a == b and false otherwise

no

eq reads one comparand from each of its inputs and outputs the boolean result of comparing them for equality.

  • For numbers, the comparison uses numerical value.

  • For strings, the comparison is conventional string equality (same length and contents).

  • For bitsets, the two sets must be equal. It is an error if the comparands do not have the same capacity.

  • For all other types, the comparands are compared by address, meaning that they are eq if and only if they are one and the same object in memory.