logic_multicompare

From Source Entities
Jump to navigation Jump to search

Code classes:

Logic multicompare.png

logic_multicompare is a point entity present in all Source games. It checks for equality between every member of a list of integers. Essentially logic_branch_listener but comparing integers instead of booleans.

Keyvalues[edit | edit source]

Should use Integer Value (ShouldComparetoValue) <boolean>
If Yes, the value in Integer Value will be added to the list. If not used, every value given might be equal, but not specifically a value the mapper wants.
Integer Value (optional) (IntegerValue) <integer>
A value to add to the list.

Inputs[edit | edit source]

InputValue <integer>
Adds a value to the list of ones being compared.
CompareValues
Compares the values and fires an output.

Outputs[edit | edit source]

OnEqual
Fires if all the values are equal.
OnNotEqual
Fires if any values are not equal.

See Also[edit | edit source]