mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-02-26 00:47:42 +01:00
Fix variable cast
This commit is contained in:
parent
d81371c2b7
commit
8e16f28827
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user