if (($lastvisit eq "$dateadded2" && $nowhourmin < 10) { print "Online"; }