Moderator elections are being held. See Valve Developer Community:Moderator elections for more details.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
Users who would like to run for moderator must be autoconfirmed and have at least 100 edits. Users can check their own edit count at Special:Preferences.
logic_multicompare
![Underlinked - Logo.png](/w/images/9/91/Underlinked_-_Logo.png)
This article needs more links to other articles to help integrate it into the encyclopedia. Please help improve this article by adding links that are relevant to the context within the existing text.
January 2024
January 2024
![English (en) English (en)](/w/images/thumb/3/37/Flag-en.png/16px-Flag-en.png)
![Icon-translate.png](/w/images/thumb/b/b1/Icon-translate.png/12px-Icon-translate.png)
... ![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
![Icon-Important.png](/w/images/thumb/5/5c/Icon-Important.png/10px-Icon-Important.png)
![]() |
---|
CLogicCompareInteger defined in ![]() logicentities.cpp
|
![Logic multicompare.png](/w/images/2/2a/Logic_multicompare.png)
logic_multicompare
is a point entity available in all Source games.
Compares a set of inputs to each other. If they are all the same, fires an OnEqual output. If any are different, fires the OnNotEqual output.
This entity has an internal list of integers that it has received from any inputValue input's. Any values sent to this entity, must be sent as an integer or boolean because "if it can't be converted" the entity will "just throw it away" (Source Code comment from dev's). Currently, there is no way to clear this 'list', so the entity is not reusable.
Keyvalues
- Integer Value (optional)
(IntegerValue)
<integer> - Initial integer value.
- Should use Integer Value
(ShouldComparetoValue)
<boolean> - If set, compare inputs against Integer Value.
Targetname:
- Name
(targetname)
<string> - The targetname that other entities refer to this entity by.
Inputs
InputValue
<integer>- Input value
CompareValues
- Compares the values and fires appropriate outputs
Outputs
{{IO|OnEqual|Fires if the values are equal (!activator
is the activator)
{{IO|OnNotEqual|Fires if the values are not equal (!activator
is the activator)