Just put in the rest of what was shown:

Code:
if($hget(hashtable,test) < $duration(1 week)) { command 
}


Originally Posted By: HaleyJ
p.s anyway for me to test that the code is working, as I do not know $ctime values from over a week ago?


$ctime always changes. To know if it's working, you need the current $ctime to be 604800 higher than what is stored in your hash table. Then, just check with your IF statement.

This is how you'd know what the difference needs to be:
//echo -a $duration(1 week)