STscript: don't parse boolean operands as 0 for strings containing just spaces
| @@ -514,7 +514,8 @@ export function parseBooleanOperands(args) { | |||
| 514 | return ''; | 514 | return ''; |
| 515 | } | 515 | } |
| 516 | 516 | ||
| 517 | const operandNumber = Number(operand); | 517 | // parseFloat will return NaN for spaces. |
| 518 | const operandNumber = parseFloat(operand); | ||
| 518 | 519 | ||
| 519 | if (!isNaN(operandNumber)) { | 520 | if (!isNaN(operandNumber)) { |
| 520 | return operandNumber; | 521 | return operandNumber; |