Pardot can use Handlebars Merge Language for conditional statements. They can be added directly to the text (related article here).

For example -

{{#if Recipient.FirstName}}
Dear {{Recipient.FirstName}},
{{else}}
Dear Friend,
{{/if}}