KWGT If statement in text field
I am trying to format text in a text field such that a calander event that is an all day event shows only the day and title, and if it is not an all day event it shows day start time and title.
The following if statement works to produce X if the event is all day and Y if it is not:
$if(ci(allday, 5)=1,"x","y")$
This statement shows the proper formatting for an all-day event:
$df(EEE hh:mm a, ci(start, 0))$ - $ci(title, 0)$
This statement shows the proper formatting for an event that is NOT all day:
$df(EEE hh:mm a, ci(start, 0))$ - $ci(title, 0)$
BUT when I put it all together like this:
$if(ci(allday, 0)=1,$df(EEE, ci(start, 0))$ $ci(title, 0)$,df(EEE hh:mm a, ci(start, 0))$ - $ci(title, 0)$)$
It does not work
err: Parenthesis mismatch
err: expression can't start with a function argument separator