- Home /
Question by
Dhany_7394 · Jan 16, 2013 at 04:45 AM ·
scriping
what it means, Operator '<' cannot be used with a left hand side of type 'boolean' and a right hand side of type 'float'.
hi... im newbi here.. please tell me,. what is this mean?? "BCE0051: Operator '<' cannot be used with a left hand side of type 'boolean' and a right hand side of type 'float'."
Comment
Answer by Lovrenc · Jan 16, 2013 at 04:49 AM
You cannot compare boolean and float. Its like if you were to say: "What is less, 3 kilometers or 20 kilograms?"
boolean only holds 2 values: true or false float is a decimal number.
So you are saying kinda: is true less than 30? Would work in some loosely typed languages, but not here.