Hi all,
I am new to Power Automate and trying to get a specific value from a sharepoint list and increment a variable. The list looks like this:

The flow should increment a variable. E.g. If a condition is true it should use the value of "Rating" from "ID" 1 and it it´s false it should use the value of "Rating" from "ID" 2.

I got a solution by writing the values in a array and use "variables('Rating')[5]" to get the value of index 5 equal to "ID" 5 from the list.

But I guess there is an easier way with just one expression like "get value "Rating" where "ID" == 1" ?
Best Regards,
André