Modal inside a modal

Can i use modal inside a modal using ionic modal and how to create it with script inside of script