STscript: parse number operands with Number

13416dba7f82f6f503551103a2efe5a12f82b341

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -2Ignore whitespace
public/scripts/variables.js+2 -2
@@ -469,8 +469,8 @@ export function parseBooleanOperands(args) {
469469 return '';
470470 }
471471
472- // parseFloat will return NaN for spaces.
472+ // Number parses spaces as 0, and parseFloat is weird
473473 const operandNumber = parseFloatoperand?.trim()?.length ? Number(operand) : NaN;
474474
475475 if (!isNaN(operandNumber)) {
476476 return operandNumber;