Is it possible to check the last character of a variable against a list of possible endings? I realize I could repeat through each one in the list and test, but I was just curious if there was something more direct, similar to the below:
set theName to "file1"
set enders to {"1","2","3"}
if theName ends with any item in enders then
-- do something
end if