check last character of a variable against a list of characters?

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


set theName to "file1"
set enders to {"1", "2", "3"}
if last character of theName is in enders then
	-- do something
end if

or


set theName to "file1"
set enders to "123"
if last character of theName is in enders then
	-- do something
end if

Awesome, thanks! Exactly what I wanted.