You should be able to add the variables for the help pages in between the {/section} and {/if} in the code below:
Code:
{elseif $config.SEO.page_title_format eq "G"}
{section name=position loop=$location}
{if %position.last%}{$location[position].0|escape}{/if}
{/section}
{INSERT OTHER IF STATEMENTS HERE}
{/if}
Let me know if that works.