How can i have single Zip extraction and zip inside zip extraction in single sequence,I need to have single sequence to perform both the types of extraction

How can i have single Zip extraction and zip inside zip extraction in single sequence,I need to have single sequence to perform both the types of extraction and handle both types of conditions.