<?php 

// Special trick that will inject logic into Structure 

$exclude = ""; 
?>

{exp:channel:entries channel="static_content" dynamic="no" search:display_in_nav="=No"}
<?php
    $exclude .= "{entry_id}";
?>    
{if count != total_results}<?php $exclude .= "|"; ?>{/if}
{/exp:channel:entries}

{embed="nav_creation" exclude="<?php echo $exclude; ?>"}

==============
<?php 
// nav_creation template 
?>
{exp:structure:nav_full css_class="aaa" css_id="aaa" current_class="active" exclude="{embed:exclude}"}