Skip to content

How to compare value to any values (multiple values/items)? #5847

Open
@Denis535

Description

@Denis535

I have the values and keys. The values are pointing on keys.

<ItemGroup>
    <Key Include="0" />
    <Key Include="3" />
</ItemGroup>

<ItemGroup>
    <Val Include="A0" Key="0" />
    <Val Include="A1" Key="0" />
    <Val Include="B"  Key="1" />
    <Val Include="C"  Key="2" />
    <Val Include="D0" Key="3" />
    <Val Include="D1" Key="3" />
</ItemGroup>

I need to filter values which are pointing on the any key in my list. But none of the following methods works ((

<Message Text="@(Val->WithMetadataValue( 'Key', %(Key.Identity) ))" Importance="high" />
<Message Text="@(Val)" Condition="%(Val.Key) == %(Key.Identity)" Importance="high" />
<Message Text="@(Val)" Condition="@(Key->AnyHaveMetadataValue( 'Identity', %(Val.Key) ) )" Importance="high" />

Is it possible to do it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions