How to get value from dic where key is value of another var

Hi :slight_smile:

I need to get value “10” from pricelist by @code and i it doesnt exist fill like NULL

{
@code”: “ZPA1G32MEI180”,
“priceslist”:{
“ZPA1G32MEI180”:10
}
}

somethink like this

&{pricelist}[&{“@code”}] || null

but it doesnt work

Hi @vosy ,

Please see this article to get the solution for your problem.

https://forum.alumio.com/t/dynamically-extract-a-value-within-an-object-based-on-its-key/742