Including 2 files under condition

<?php
$myVariable="yes";

if ($myVariable == "yes") 
{include "yes.php";}
else 
{include "no.php";}
?>

The code above works fine.
I like to include 2 files under condition.
So I made the code below, but it causes an error.

<?php
$myVariable="yes";

if ($myVariable == "yes") 
{include "yes1.php";
include "yes2.php";
}
else 
{include "no1.php";
include "no2.php";}
?>

How can I make the code above work fine?

post the error message

Sorry, it actually works fine. Thank you.