How to fix it ? The operation < cannot accept the arguments

errorblock
Error showing :The operation < cannot accept the arguments: , [Your BMI :22.73], [18.4]
how i fix it ?

Well, you cannot compare a piece of text “Your BMI: something” with a number (8). So, you will have to compare the values (18.4, 24.0, blah blah blah) with this instead.

image

Basically, replace “valuebmi.Text” in your comparison blocks with the above block and try.

1 Like

Think this way: which is larger, a centimeter or a cubic centimeters? The answer is, you can’t compare them, because they belong to different types of units.

Same applies here. Can you compare “Your BMI: 18” with 18? No. One is text and one is a number.

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