I’m having the following problem with code (shown below) where I am trying to run an if/elseif/else statement to load a specific weblog based on what day it currently is. It will currently assign the first variable shown (monday) but will ignore any other content inserted within it.
{assign_variable:thedate="{current_time format="%D"}"}
{if thedate == "Mon"}
{assign_variable:my_weblog="monday"}
{if:elseif thedate == "Tue"}
{assign_variable:my_weblog="tuesday"}
{if:elseif thedate == "Wed"}
{assign_variable:my_weblog="wednesday"}
{if:elseif thedate == "Thu"}
{assign_variable:my_weblog="thursday"}
{if:elseif thedate == "Fri"}
{assign_variable:my_weblog="friday"}
{if:else}
{assign_variable:my_weblog="friday"}
{/if}