I've just finished my images caption (I know it looks messy but it is this way so that certain elements don't appear on the same line)
I like the new ifelse feature. I've managed to make a caption that would otherwise be extremely difficult.
If the output of the day is 01 it outputs 01st
and if 02 it outputs 02nd,
and if 03 it ouputs 03rd,
and if 21 it ouputs 21st
and if 22 it ouputs 22nd
and if 23 it ouputs 23rt
and if 31 it ouputs 31st
and if day equals any other it outputs [day]th
The part I'd like help with is the date I've got it working there is just one little tweak I'd like to do.
The part that outputs the day to a double digit, if the number is from 01 - 09 remove the 0 digit from it. Would it be hard to do/worth while). I don't know I just don't like the look of left trailing zeros.
if(isempty([date]),,formatdate([date,0],dddd the formatdate([date,0],dd,),)ifelse(isequal(formatdate([date,0],dd,),01,2),st,isequal(formatdate([date,0],dd,),02,2),nd,isequal(formatdate([date,0],dd,),03,2),rd,
isequal(formatdate([date,0],dd,),21,2),st,isequal(formatdate([date,0],dd,),22,2),nd,isequal(formatdate([date,0],dd,),23,2),rd,isequal(formatdate([date,0],dd,),31,2),st,1,th)
formatdate([date,0],MMMM,) formatdate([date,0],yyyy,)
)if(isempty([caption]),,[caption])
if(isempty([places]),,[places])
if(isempty([people]),,replace([people],;,/ &))
Thanks