To check the date and show or hide a meter on certain days, you can use a properly set Time measure. For instance:but I would also like it to show a specific gif on certain days (e.g. show a Christmas themed gif on Christmas day).
Code:
[MeasureTime]Measure=TimeFormat=%#m.%dIfCondition=(#CURRENTSECTION#=10.25)IfTrueAction=[!ShowMeter "MyMeter"]IfFalseAction=[!HideMeter "MyMeter"]
Obviously you can use more dates and if the current date match any of them, the condition becomes true and the meter is shown. For this you need more conditions, but this can easily be done: IfCondition=((#CURRENTSECTION#=10.25)||(#CURRENTSECTION#=10.26)). In this case the IfTrueAction is executed on both dates, October 25th and October 26th and on the other days IfFalseAction is executed.
I didn't add the code of the Image meter, hope the question is not related to this. However, let us know if it is.
Statistics: Posted by balala — Yesterday, 8:36 pm