no, you cant use a ternary op in heredoc, neither can you use if, switch, or loop constructs, and you cant make function calls. you cant assign to variables either. it just allows for easy output of text with both variables, newlines, double quotes, in a syntax that one may type in a text document or something similar.