Fixed the scope="local" on set tag.
This commit is contained in:
1 parent
ae4ff5a3dc
commit
9dcedd302b
3 files changed
+7
-6
No files matched your search
@@ -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"];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user