mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix variable cast
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user