Print value of item when other item in bundle matches a string

Hi I have these two items in a bundle:

{{10.items.customFields.name}}
{{10.items.customFields.value}}

I would like to print the .value of this custom field bundle when the .name matches a string. Is this possible?

like:

IF {{10.items.customFields.name}}=String

THEN {{10.items.customFields.value}}

I’ve tried combining these two in various ways but nothing has worked so far.

At the moment I can only control when the value is printed directly via the customFields ID.

Thanks

Ok seemed to have solved it using map:

{{get(map(10.items.customFields; “value”; “name”; “string”); 1)}}

2 Likes