|
|

|

|
|
...The
tutorials and forums about UEd mapping were what taught me the most about using the editor. This is my way of giving back.
If any of the information presented is incorrect, please do contact me at vincennes999@yahoo.com and I will correct it. Please put 'tutorial correction' or something similar in the subject line so I know it's not spam. |
|
|
|
|
| 
Comparison - Int Counter
|


|
Int Counter is used to do simple
math and output results based on comparisons using integers.
• IncrementAmount: This determines by what factor the
counter will count by. Signals that enter stack on top of each
other by the increment amount and become ValueA. This increment
amount can also be negative.
• ValueA: The initial integer value that is combined with
the increment amount, and then compared to ValueB.
• ValueB: The integer value you will compare to ValueA
and increment amount result.
• Note: It is not necessary to hold the A & B values
in separate references. It is absolutely fine to simply type
them in the ValueA and ValueB fields. But sometimes you need
them separate, for example if you are also performing 'set int'
actions on them.
The functionality is fairly straightforard. A signal enters
the 'In' and the increment amount is added to the ValueA. This
result is compared to B, and then the signal exits via the approprate
node.
In the image below, let's say ValueA = 0 and ValueB = 2 with
an increment amount of 1.
• When a signal #1 enters, it would
add the increment amount, 1, to A, so 0 + 1 = 1. This result,
1, is then compared to B, 2, and the signal would try to leave
via the A < B output.
• When singal # 2 enters, it would add the increment amount,
1, to A, which is still 1 from the previous signal. So 1 + 1
= 2. This result, 2, is then compared to B, 2, and the signal
would try to leave via the A == B output and also the A <=
B and A >= B.
• If a third signal comes in,
it adds 1 (increment amount) to A, which is now 2. 1 + 2 = 3.
And then it compares A to B, or 3 to 2. So the signal would
now exit through the A > B output.
|

|

 |
|
|
|






|