{/exp:stash:set}
{exp:stash:set name="{segment_2}_meta_data" parse_conditionals="yes"}
{if meta_description}
{/if}
{!-- do not index if the channel is any of these below --}
{if '{channel_short_name}'=='cpa-accommodation' || '{channel_short_name}'=='hawaiitours'}
{/if}
{!-- do not index if entry says not too or if there is a fourth segment in the url --}
{if '{segment_4}'!='' || '{allow_index}'=='no' || '{current_query_string}'=='live=' || '{current_query_string}'=='live=cleared' || '{current_query_string}'=='live=ee-cleared' || '{current_query_string}'=='live=cf-cleared'}
{/if}{!--segment_4 & allow_index--}
{/exp:stash:set}
{/exp:channel:entries}