What is ENDIF doing in templates? [closed]

if(condition):

// some scripts here

endif;

Is same as

if(condition)
{

    // some scripts here

}

See http://php.net/manual/en/control-structures.alternative-syntax.php

Leave a Comment