(ctx context.Context, scope *engine.Scope)
| 35 | } |
| 36 | |
| 37 | func (n *SetVariable) Execute(ctx context.Context, scope *engine.Scope) (string, error) { |
| 38 | val, err := expr.Eval(n.value, scope) |
| 39 | if err != nil { |
| 40 | return "", fmt.Errorf("set_variable %s: evaluating value: %w", n.ID(), err) |
| 41 | } |
| 42 | scope.Set(n.variable.SrcId, n.variable.VarId, val) |
| 43 | return n.Next(engine.PortCtrl, scope) |
| 44 | } |