I will calculate the number of days between two dates in order to send an email. The first date is before the second date. When I use the daysbetween expression, the email will be send two times because it will not look if the result is positive or negative!
Then you need to add a check wheter a result is negative of positive?
With the expression daysbetween the result is always positive!
Just add a check that Date2 > Date1 to your logic ??
$Sendemail = $DaysBetween > 0
Where $Sendemail is a boolean that is true if the DaysBetween are positive.