Filter A Collection With OR Condition

Input collection: myTrucks41

YearMake Model
2020FordF150
2018ChevySilverado
2019FordF150
2020ChevyAvalanche
2017ChevySilverado
2016GMYukon


Output collection: mySolution41 (filter on Model equals ‘Silverado’ or ‘Yukon’)

YearMake Model
2018ChevySilverado
2017ChevySilverado
2016FordYukon


Solution code:

//Create a collection
ClearCollect(myTrucks41,
{Year: 2020, Make: "Ford", Model: "F150"},
{Year: 2018, Make: "Chevy", Model: "Silverado" },
{Year: 2019, Make: "Ford", Model: "F150" },
{Year: 2020, Make: "Chevy",Model: "Avalanche"},
{Year: 2017, Make: "Chevy", Model: "Silverado"},
{Year: 2016, Make: "GM", Model: "Yukon"}
);

//Filter collection code
ClearCollect(
    mySolution41,
    Filter(myTrucks41,Model="Silverado" Or Model="Yukon")
);