diff --git a/addons/dialogic/Modules/Core/subsystem_expression.gd b/addons/dialogic/Modules/Core/subsystem_expression.gd index 61d2c7988..fd4489aa6 100644 --- a/addons/dialogic/Modules/Core/subsystem_expression.gd +++ b/addons/dialogic/Modules/Core/subsystem_expression.gd @@ -20,6 +20,9 @@ func execute_string(string:String, default: Variant = null, no_warning := false) for res in regex.search_all(string): var value: Variant = dialogic.VAR.get_variable(res.get_string()) string = string.replace(res.get_string(), var_to_str(value)) + + if string.begins_with("{") and string.ends_with('}') and string.count("{") == 1: + string = string.trim_prefix("{").trim_suffix("}") var expr := Expression.new()