How would I write conditional logic in this piece of code?

Hello there,

I am working on some code for a site using MKPortal. I came across some syntax that I am not familiar with. This function, which prints the logo header, ends with this:

return <<<EOF

// all HTML code here

EOF;

Inside this return statement, I would like to add some conditional logic. Is there a way to break outside of this return statement so I can do things such as mysql queries? I am totally unfamiliar with this syntax, so I have no idea where to start.

I found a solution in case other forum members stumble upon this thread.

I can run my conditional logic before the return and use variable substitution like so:

{$logo_description}
Sponsor our Newsletter | Privacy Policy | Terms of Service