There's no error. It's quite a simple little script with if/else statements.
$bo3 is a textfield without a default value. I'm checking 5 textfields here for a value and "0" is treated as empty/no value. It doesn't matter if I leave this field empty or enter "0".
Unfortunately, I'm not too good with strings yet, just my guitar strings.