end structure
The end keyword marks the end of an object type, on, function, repeat, if, switch, tell, or try structure.
If an end statement is used outside its corresponding structure, a script error is triggered.
object type, on, function, repeat, if, switch, tell, try, exit, pass