controllogic: debug value is Value (array-capable); lua get narrows to scalar
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1053,11 +1053,7 @@ func (cg *compiledGraph) run(nodeID string, ctx *runCtx) {
|
||||
|
||||
case "action.write":
|
||||
val := EvalValue(node.param("expr"), ctx.resolve)
|
||||
f, isNum := val.(float64)
|
||||
if !isNum {
|
||||
f = math.NaN()
|
||||
}
|
||||
cg.emitDebug(node.ID, f, true)
|
||||
cg.emitDebug(node.ID, val, true)
|
||||
cg.engine.write(cg, node.param("target"), val)
|
||||
cg.follow(node.ID, "out", ctx)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user