How to increment float if condition is true?

@Stormrage256 Thanks, I see what the problem is but I didn’t quite understand the solution. This is my very unsuccessful attempt.