on do_this()
if not do_that() then do_that()
display dialog "I escaped"
end do_this
on do_that()
set a_list to {false, false, false, false, false, false, false, false, false, true}
set a_random_number to (random number from 1 to 10)
display dialog (a_random_number as string) & " " & item a_random_number of a_list
return item a_random_number of a_list
end do_that