Help with if/else loop [closed]

You arent clear where you want your else statement, so Ive added one for each of the if’s you included.

<?php
    $post_type="post"; // <-- Post Type
    $tax = 'temporada'; // <-- Taxonomía
    $termino = get_terms($tax);
    $category = get_the_category(); 
    $cat_name = $category[0]->cat_ID;
    if ($termino) {
        foreach ($termino as $temporada) {
            $args=array(
               'post_type' => $post_type,
               "$tax" => $temporada->slug,
               'cat' => $cat_name,
               'post_status' => 'publish',
               'orderby'   => 'meta_value', 
               'meta_query' => array( array('key' => 'numeroepisodio') ),
               'hide_empty' => true,
               'order' => ASC
            );
            $query_episodios = null;
            $query_episodios = new WP_Query($args);
            if( $query_episodios->have_posts() ) {
                echo '<h3>title...</h3>';
                while ($query_episodios->have_posts()) : $query_episodios->the_post(); ?>
                    <a href="https://wordpress.stackexchange.com/questions/178890/<?php echo the_permalink() ?>"><li><strong>[...]</strong></a>
                <?php endwhile; 
            } else {
                // do something
            }
            echo '</ul>';
            wp_reset_query(); 
        } 
    } else {
        // do something
    }
?>