Fix variable cast

This commit is contained in:
Cohee 2023-11-24 14:53:12 +02:00
parent d81371c2b7
commit 8e16f28827
1 changed files with 2 additions and 2 deletions

View File

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