Drop empty else clause
Parse box values as floats so that the strict equatity works.

Otherwise they will always be strings.