Evaluator column example

I'm trying to create an evaluator column that will show the following:
If file is 1 day old, show 1
If file is 2 days old, show 2
If file is 3 days old, show 3
otherwise show nothing.

I've looked at some examples but haven't been able to get anything to work.
Could use some help


age = DateDiff("d", modified, Now());

if (age < 2) return 1;
if (age < 3) return 2;
if (age < 4) return 3;

return "";

Thank you again Ixp. This isn't the first time you have helped me. I'll give it a try later tonight.
Much appreciated.

Worked perfectly. Can't thank you enough.