if statement with floats in C#

Oh i was just about to post: Using code tags properly

but part of your post has code properly! excellent. Always use that format for code, in the future please :slight_smile:

The problem is you’re using assignment instead of comparison. Check it says ‘timeLeft = 0’ instead of ‘timeLeft == 0’
Change it and all is well.

2 Likes