Hm, it doesn't work (iI did copy&paste). It marks ALL files. Even those I never played.
I'm not sure why it doesn't work for you, as it's working perfectly here, with the exclamation marks dropping off as the 12 hours pass since last played.
if(isrange([last played,0],math(now()-0.5)-now()),!,)
Lasse_Lus, I'm not sure if you see something different, but,
math(Left(FormatNumber(now(),5),5).mid(FormatNumber(now(),7),6,7)-0.5) and
math(now()-0.5) both produce the exact same result here?
Could it be that some locales use a comma instead of a decimal point? If that is the problem, then wouldn't [last played,0] suffer the same issue, requiring "replace([last played,0],/,,.)" to bring into line with the range check? "replace()" won't work directly on the "now()" function, but does work if you create a calculated library field using simply now() and then use the following expression: replace([Current Date (Raw)],/,,.)
Dates, numbers and locales must be a right pain for developers!!
Just one last question: possible to mark files played "yesterday"? Would be a nice workaround for parties which go over midnight
This ought to take care of that...
Played Yesterday:
if(isequal([last played],formatdate(math(now()-1),dd//MM//yyyy),8),Y,)-marko