Is there a shorter syntax in Twig to output a conditional string of text?
{% if not info.id %}create{% else %}edit{% endif %}
This should work:
{{ not info.id ? 'create' : 'edit' }}
Also, this is called the ternary operator. It's kind of hidden in the documenation: twig docs: operators
From their documentation the basic structure is:
{{ foo ? 'yes' : 'no' }}