Hello all,
I'm trying to do a compose where i get the current date in format yyyyMM and then depending on the day i do a if.
If dd < 10 i want to subtract 1 to the compose with yyyyMM if not I stay with the compose.
all okay with the first two composes, the issue is at the if statement because it says that the expression is invalida. someone to help me?
Compor: int(formatDateTime(utcNow(),'yyyyMM')) i get it in integer to do the subtraction later
Compor_2: int(formatDateTime(utcNow(),'dd'))
Compor_3: if(outputs('Compor_2')<10,add(outputs('Compor'),-1),outputs('Compor'))
I've already tried the statement add isolated and it works so I think probably the issue is with the outputs inside a if statement or maybe the '<10'
thanks in advance,
Miguel Teixeira