Fix variable cast

This commit is contained in:
Cohee 2023-11-24 14:53:12 +02:00
parent d81371c2b7
commit 8e16f28827

View File

@ -183,12 +183,12 @@ function parseBooleanOperands(args) {
if (existsLocalVariable(operand)) { if (existsLocalVariable(operand)) {
const operandLocalVariable = getLocalVariable(operand); const operandLocalVariable = getLocalVariable(operand);
return operandLocalVariable || ''; return operandLocalVariable ?? '';
} }
if (existsGlobalVariable(operand)) { if (existsGlobalVariable(operand)) {
const operandGlobalVariable = getGlobalVariable(operand); const operandGlobalVariable = getGlobalVariable(operand);
return operandGlobalVariable || ''; return operandGlobalVariable ?? '';
} }
const stringLiteral = String(operand); const stringLiteral = String(operand);