My SharePoint list got RoomStatus: Blocked/Released and BlockedUntil: Date.
Under select action, I can change fonts for BlockedUtil with a 3 days date check with the below expression.
If(empty(item()?['BlockedEndDate']), '', if( lessOrEquals(item()?['BlockedEndDate'] , addDays(formatDateTime(utcNow(), 'yyyy-MM-dd'), 3, 'yyyy-MM-dd')), concat('<font color= "Red">',item()?['BlockedEndDate'],'</font>') , concat('<font color= "Green">',item()?['BlockedEndDate'],'</font>')))
But when I want to use it like -If RoomStatus equals Blocked and above condition, I am getting a syntax error. New bee here. Any help?