hmmm, think the logic is a bit reversed ? probably might want:
code:
If $passwordnotice1 = Val($passwordage)
MessageBox("$passwordtitle","Your password will expire in 10 days.",64)
Else
Goto DAYS5
EndIf
Or maybe use the SELECT-CASE-ENDSELECT construct ?
code:
Break On
$maxpwage = 90
$passwordage = @PWAGE
$passwordtitle = "Password Expiration Notice"
$passwordnotice1 = 80
$passwordnotice2 = 85
$passwordnotice3 = 87
$passwordnotice4 = 89
Select
Case $passwordnotice1 = Val($passwordage)
$= MessageBox("$passwordtitle","Your password will expire in 10 days.",64)
Case $passwordnotice2 = Val($passwordage)
$= MessageBox("$passwordtitle","Your password will expire in 5 days.",64)
Case $passwordnotice3 = Val($passwordage)
$= MessageBox("$passwordtitle","Your password will expire in 3 days.",64)
Case $passwordnotice4 = Val($passwordage)
$= MessageBox("$passwordtitle","Your password will expire in 1515 day.",64)
Case 1
EndSelect
-Shawn
[ 03. July 2003, 23:17: Message edited by: Shawn ]