protected function compileIfStack($expression)
    {
        foreach (['UnLess', 'If', 'ElseIf', 'ElseIfAlias', 'Else', 'EndIf'] as $token) {
            $out = $this->{'compile'.$token}($expression);

            if (strlen($out) !== 0) {
                $expression = $out;
            }
        }

        return $expression;
    }
protected function compileIfStack($expression)
    {
        foreach (['UnLess', 'If', 'ElseIf', 'ElseIfAlias', 'Else', 'EndIf'] as $token) {
            $out = $this->{'compile'.$token}($expression);

            if (strlen($out) !== 0) {
                $expression = $out;
            }
        }

        return $expression;
    }
protected function compileIfStack ( $ expression ) { foreach ( [ 'UnLess' , 'If' , 'ElseIf' , 'ElseIfAlias' , 'Else' , 'EndIf' ] as $ token ) { $ out = $ this -> { 'compile' . $ token } ( $ expression ) ; if ( strlen ( $ out ) !== 0 ) { $ expression = $ out ; } } return $ expression ; }
Compile the if statement stack

@param string $expression

@return string
Compile the if statement stack