Error: Yails cannot divide the accepted arguements [Hieght cm] [100]

Hi, im currently new to MIT app inventor. At the moment I am making a simple BMI calculator app by following a youtube video for a school project, for some reason this block seems to have an error even though, its the same as the one on the video.
Here are my blocks for your reference.

It seems that in your height.Text you have not a value...but *Hieght cm"...check that.

1 Like

There is an 'is a number' block you can use to test the weight and height values before doing any math with them.

Use an if/then test and a Notifier for each error.

1 Like