From 8e16f28827086f136aac386c44cb3d08ff114a86 Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Fri, 24 Nov 2023 14:53:12 +0200 Subject: [PATCH] Fix variable cast --- public/scripts/variables.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/variables.js b/public/scripts/variables.js index 64ad135d0..e3db314e8 100644 --- a/public/scripts/variables.js +++ b/public/scripts/variables.js @@ -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);