Logic compare: Difference between revisions
Jump to navigation
Jump to search
(→Entity Description: Icon) |
(Shortened description and reverted half of ts2dos edit. (That was note proper english.)) |
||
Line 2: | Line 2: | ||
==Entity Description== | ==Entity Description== | ||
[[Image:{{PAGENAME}}.png|right]]Compares an input value to another | |||
[[Image:{{PAGENAME}}.png|right]]Compares an input value to another value, and fires an output depending on if the input value is equal to, greater than, less than, or not equal to, the compare value, sending the input value as data. | |||
Note the difference between the '''SetValueCompare''' and '''SetCompareValue''' inputs. | |||
==Keyvalues== | ==Keyvalues== | ||
Line 34: | Line 38: | ||
* {{o targetname}} | * {{o targetname}} | ||
* '''OnEqualTo <float>''' | |||
: Fired when the input value is equal to the compare value. Sends the input value as data. | |||
* '''OnGreaterThan <float>''' | |||
: Fired when the input value is greater than the compare value. Sends the input value as data. | |||
* '''OnLessThan <float>''' | * '''OnLessThan <float>''' | ||
: Fired when the input value is less than the compare value. Sends the input value as data. | : Fired when the input value is less than the compare value. Sends the input value as data. | ||
* '''OnNotEqualTo <float>''' | * '''OnNotEqualTo <float>''' | ||
: Fired when the input value is different from the compare value. Sends the input value as data. | : Fired when the input value is different from the compare value. Sends the input value as data. | ||
[[Category:Entities]] | [[Category:Entities]] |
Revision as of 14:57, 10 September 2007
Entity Description
Compares an input value to another value, and fires an output depending on if the input value is equal to, greater than, less than, or not equal to, the compare value, sending the input value as data.
Note the difference between the SetValueCompare and SetCompareValue inputs.
Keyvalues
- InitialValue
- <integer> Initial value for the input value.
- CompareValue
- <integer> The value to compare against.
Inputs
- SetValue <float>
- Set the value that will be compared against the compare value.
- SetValueCompare <float>
- Set the value that will be compared against the compare value and performs the comparison.
- SetCompareValue <float>
- Set the compare value.
- Compare
- Force a compare of the input value with the compare value.
Outputs
- OnEqualTo <float>
- Fired when the input value is equal to the compare value. Sends the input value as data.
- OnGreaterThan <float>
- Fired when the input value is greater than the compare value. Sends the input value as data.
- OnLessThan <float>
- Fired when the input value is less than the compare value. Sends the input value as data.
- OnNotEqualTo <float>
- Fired when the input value is different from the compare value. Sends the input value as data.