PHP. We need to organize a check inside the output

Inside the output (echo), you need to execute the script, an error is displayed, please help with the syntax

if ($n!=$myrow4['liga'])
echo "
<strong>".$myrow4['para']."</strong>
<span style='padding-top: 4px; font-size: 14px; color: #409E30;'>
  <strong>".$myrow4['stet']."</strong></span><br>
  <span style='padding-left: 4px; font-size: 11px;'>
  "    if 
   ($myrow4['vremya']!='')
                             {".$myrow4['vremya']."} 
  {".$myrow4['natalo']."}"
   </span>
</td>
";

This is not an option -> if ($myrow4['vremya']!='') echo "";


Answer 1, authority 100%

echo "".empty($myrow4['vremya'])?$myrow4['natalo']:$myrow4['vremya']."";

Answer 2

echo !empty($myrow4['vremya']) ? $myrow4['vremya'] : '...';

Answer 3

if ($n!=$myrow4['liga'])
echo ("
<strong>".$myrow4['para']."</strong>
<span style='padding-top: 4px; font-size: 14px; color: #409E30;'>
  <strong>".$myrow4['stet']."</strong></span><br>
  <span style='padding-left: 4px; font-size: 11px;'>");
if ($myrow4['vremya']!='') echo ("".$myrow4['vremya']."");
else echo("".$myrow4['natalo']."");

That’s something like this)