Case $iButtonCalc
$iWeight = Number(GUICtrlRead($iInputWeight))
$iHeight = Number(GUICtrlRead($iInputHeight))
If GUICtrlRead($iRadioCmKg) = $GUI_CHECKED Then
$iRes = $iWeight / (($iHeight / 100) ^ 2)
Else
$iRes = ($iWeight / ($iHeight ^ 2)) * 703.06957964
EndIf
$iRes=GUICtrlSetData($iInputBMI, Round($iRes, 2))
IF GUICtrlRead($iRes) <=18.5 Then
MsgBox(0,"BMI","Underweight")
ElseIf
GUICtrlRead($iRes) >=18.5 and GUICtrlRead($iRes) <=24.9 Then
MsgBox(0,"BMI","Healthy Weight")
ElseIf
GUICtrlRead($iRes) <=25 GUICtrlRead($iRes) <=29.9 Then
MsgBox(0,"BMI","Overweight")
ElseIf
GUICtrlRead($iRes) >=30 Then
MsgBox(0,"BMI","Obese")
EndIf