input : "x+y-x*y" x=10,y=5 output: 10+5-10*5 in our x place i updated 10, y place i updated 5

i tried but i did not get exact output, any one try this ..

a!localVariables(
local!expression: "x+y-x*y",
local!result: a!forEach(
items: enumerate(len(local!expression)) + 1,
expression: local!expression[fv!index]
),
local!arryIndex: {
x: wherecontains(touniformstring({ "x" }), local!result),
y: wherecontains(touniformstring({ "y" }), local!result),

},
local!etdata: a!update(
data: local!result,
index: { local!arryIndex.x, local!arryIndex.y },
value: { 10, 20 }
),
local!etdata
)

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data