Fixed the scope="local" on set tag.

This commit is contained in:
Brad Arant committed 2024-10-30 16:59:57 -07:00
1 parent ae4ff5a3dc
commit 9dcedd302b
3 files changed
+7 -6

No files matched your search

+4 -4
View File
@@ -24,25 +24,25 @@ namespace jet {
if(!variableDefined("scope") || (variables["scope"] == "global"))
global.variables[variables["name"]] = Operand(variables["expr"]).string;
else if(variables["scope"] == "local")
variables[variables["name"]] = Operand(variables["expr"]).string;
parent->variables[variables["name"]] = Operand(variables["expr"]).string;
} else if(hasContainer) {
processContainer(container);
if(evaluate) {
if(!variableDefined("scope") || (variables["scope"] == "global"))
global.variables[variables["name"]] = out;
else if(variables["scope"] == "local")
variables[variables["name"]] = out;
parent->variables[variables["name"]] = out;
} else {
if(!variableDefined("scope") || (variables["scope"] == "global"))
global.variables[variables["name"]] = container;
else if(variables["scope"] == "local")
variables[variables["name"]] = container;
parent->variables[variables["name"]] = container;
}
} else {
if(!variableDefined("scope") || (variables["scope"] == "global"))
global.variables[variables["name"]] = variables["value"];
else if(variables["scope"] == "local")
variables[variables["name"]] = variables["value"];
parent->variables[variables["name"]] = variables["value"];
}
}