Issue when checking if float values are equal

Im trying to turn on some lights if floats rand2 and player2 are the same but when comparing the 2 values it always returns as not equal despite the fact that both value show as the same, hopefully someone can explain what im doing wrong here. Thanks for any help




Did you try nearly equal for the floats?

1 Like

Hi, thanks for your response, i tried that and it didnt work, i managed to figure out that i wasnt setting the new value for randcode2 after a calculation, but now my issue is that it does the calculation infinitely lol

1 Like