Use string variable result as sub path; no code.

I have a string variable.

I'd like to use that string value as the subpath of a variable in an 'update variable function'

Can I do this somehow in Xano?

I need it to look something like this in no code, where I can use the result of foo as the sub path of module.

var foo = 'bar';
$var.module[foo] = 'something else';
// this would be the same as $var.module.bar = 'something else'

(this is what I tried in Lambda, ^^ but I cannot update variables from inside the lambda function)

My use case: I'm looping looping through an array that has the keys to indicate what fields need updated. I need to then use that key on the subpath to set the variable. 
Working with APIs
3 replies