Simple question: The script (in blue below) requires user to enter password to continue. I would like it to allow a correct match from a list. So instead of the line that reads:
if pass is "2432" then
I would like something like:
if pass is "2432" or "2355" or "1243" then
or even better would be a list: "2432" , "2355", "1243"
Any help would be appreciated.
==== ORIGINAL SCRIPT ==========
set pass to text returned of (display dialog "PLEASE ENTER YOUR REGISTRATION NUMBER" default answer "")
if pass is "2432" then
tell application "TextEdit"
activate
set myDoc to make new document at end
end tell
else
display dialog "Passwords do not match"
end if
if pass is "2432" then
I would like something like:
if pass is "2432" or "2355" or "1243" then
or even better would be a list: "2432" , "2355", "1243"
Any help would be appreciated.
==== ORIGINAL SCRIPT ==========
set pass to text returned of (display dialog "PLEASE ENTER YOUR REGISTRATION NUMBER" default answer "")
if pass is "2432" then
tell application "TextEdit"
activate
set myDoc to make new document at end
end tell
else
display dialog "Passwords do not match"
end if