Password Expiration - ${dayToExpire} evaluating the negative (-154255) days

Hi @nadhikari_identitynow,

Try something as below :

#if(${dayToExpire} < 1)#stop#end REMINDER: Your ${acctName} password#if ( ${dayToExpire} <= 0 ) has expired#elseif ( ${dayToExpire} == 1 ) expires in ${dayToExpire} day#elseif ( ${dayToExpire} > 1 ) expires in ${dayToExpire} days#end

I haven’t tested this out, so you may want to change the ${dayToExpire} < 1 condition to something that fits your case.

Take a look at the below thread for reference :

1 Like