So I had this that in theory was solved: Solved: Re: Can expressions have conditional? How to set u... - Power Platform Community (microsoft.com)
But now going into testing phase, it stopped working. The situation is this: for my Sharepoint list I have a choice column called "Business type", so Power Automate reads what you select as: triggerOutputs()?['body/Businesstype/Value']. The choices are either "Project Business" or "Standard Business". This determines what has to be used in an Excel file. The Excel columns are called "DiscountforProjectbusiness" "Discuontforstandardbusiness". So I need that if Project Business was selected, then the excel file data should be used "DiscountforProjectbusiness" if not. The other. So, this should be my expression, no? The Apply to each is considering this is inside an Apply to each that has filtered already that Excel table for that particular item I need.
if(equals(triggerOutputs()?['body/Businesstype/Value'], 'Project business'), items('Apply_to_each')?['DiscountforProjectbusiness'], items('Apply_to_each')?['Discountforstandardbusiness'])
But this expression is not doing anything, it's just going blank 😞 Any ideas?