Heya, I am trying to work out an IF statement that also changes the date format, and returns an empty space if there is no date from the field.
if(equals(formatDateTime(outputs('Get_item')?['body/field_19'], 'dd-MM-yyyy',''),null,formatDateTime(outputs('Get_item')?['body/field_19'])))
I though that would work but it returns this error:
The template language function 'if' expects three parameter: the condition to test as the first parameter, the value to return if the condition is true as the second parameter, and the value to return if the condition is false as the third parameter. The function was invoked with '1' parameter(s).