From 6894b7ef7265ac4560e411488710bb85c08b297f Mon Sep 17 00:00:00 2001 From: Cohee <18619528+Cohee1207@users.noreply.github.com> Date: Sat, 25 Nov 2023 18:12:28 +0200 Subject: [PATCH] Replace macros in named args of boolean evaluation --- 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 f6b06e49b..e5fb36888 100644 --- a/public/scripts/variables.js +++ b/public/scripts/variables.js @@ -1,4 +1,4 @@ -import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, system_message_types } from "../script.js"; +import { chat_metadata, getCurrentChatId, saveSettingsDebounced, sendSystemMessage, substituteParams, system_message_types } from "../script.js"; import { extension_settings, saveMetadataDebounced } from "./extensions.js"; import { executeSlashCommands, registerSlashCommand } from "./slash-commands.js"; @@ -208,7 +208,7 @@ function parseBooleanOperands(args) { } const stringLiteral = String(operand); - return stringLiteral || ''; + return substituteParams(stringLiteral) || ''; } const left = getOperand(args.a || args.left || args.first || args.x);