Hi,
I'm trying to compare a Date if is this current or last week but I keep getting error. Can you help?
if(
and(
lessOrEquals(addDays(utcNow(), mul(dayOfWeek(utcNow()), 0), 'MM-dd-yyyy'),
formatDateTime(utcNow(), 'MM-dd-yyyy')),
greaterOrEquals(addDays(utcNow(), add(6, mul(dayOfWeek(utcNow()), 0)), 'MM-dd-yyyy'),
formatDateTime(utcNow(), 'MM-dd-yyyy'))
,'Current','Past'))
I'm getting this error
Unable to process template language expressions in action 'Compose' inputs at line '0' and column '0': '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). Please see https://aka.ms/logicexpressions#if for usage details.'.