0 > 0 = true?

Hello,

i compare 2 integer A > B.

A comes from a roundet float.
B is static

I debug the game and A = 0 and B = 0 and the result from A > B is true.

Whats wrong?

Is this based off a random node somewhere down the road?

Agree with Everyone,can please provide the full blueprint.

later one i send the full blueprint.

So now :wink: i have replace A > 0 to A >= 1 … the same i get an 0 value that is true.

So now :wink: i have replace A > 0 to A >=
1 … the same i get an 0 value that
is true.

This is caused by the Random Float in Range node, as expected, and it’s an old trap. Store the result of the Round node in a variable and use that instead. Or store the result of the Random Float in Range node - the key is to access it only once to maintain a consistent result.

Currently, you’re accessing the random node twice, once for the branch and once for the Get Loot interface function. Each time the calculation chain in the back is executed, the random node produces a different result.

Previously you were even printing it, generating 3 different results.

It works, now i understand :slight_smile:

Thanks a lot