Closed LaughterJerry closed 3 years ago
attemptDaysLimit = [0,1,14,30,90,120];
let attemptList = voucher.attempts
let numOfAttempts = sizeof(attemptList)
attemptDate = attempts[-1].createdOn
if (attemptDate + attemptDaysLimit(numOfAttempt) > todaysDate){ Text = "soand so is currently ineligable until the " + attemptDate + attemptDaysLimit(numOfAttempt); } else { text = " so and so is currently eligable to (re)take the exam"; }
attemptDaysLimit = [0,1,14,30,90,120];
let attemptList = voucher.attempts
let numOfAttempts = sizeof(attemptList)
attemptDate = attempts[-1].createdOn
if (attemptDate + attemptDaysLimit(numOfAttempt) > todaysDate){ Text = "soand so is currently ineligable until the " + attemptDate + attemptDaysLimit(numOfAttempt); } else { text = " so and so is currently eligable to (re)take the exam"; }