Generally, gratuity is not applicable if an employee resigns before completing five years of continuous service. However, there are exceptions such as death or disability.