Then part in ifthenelse not executing even when conditional is true

I am making an bmi app and want set text color to green when the bmi is normal etc. but even if the bmi is normal it shows obesity class 3 or underweight. what am i doing wrong. i think it is because decimals aren’t integers but there is no random decimal block.

You do understand that you’re using equal statements…

Yes because the text in bmi_label is the bmi which is a number

You’re issue is that, the number would have to be the exact number generated…

What you did in your first if statement, it was you do with the rest.

So this should work right ?

You only have to use the second part of that, and everything else will work out!

1 Like

Thanks @hammerhai

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.