control: exported all control variables by renaming them in upper case

This commit is contained in:
2024-04-13 05:16:23 +02:00
parent ad6b4b872f
commit 838ab9fd7e
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -119,7 +119,7 @@ func (self *ast) eval(ctx ExprContext, preset bool) (result any, err error) {
if self.forest != nil {
for _, root := range self.forest {
if result, err = root.compute(ctx); err == nil {
ctx.SetVar(control_last_result, result)
ctx.SetVar(ControlLastResult, result)
} else {
//err = fmt.Errorf("error in expression nr %d: %v", i+1, err)
break