title: Marketo, Velocity Scripting for Emails and templates
body: <p>I'm new to scripting in Marketo, and I am looking for an example script for using an if/then statement in Marketo.</p>
  <p>We have an online form that will ask different questions, one of them being gender, and I want to populate a picture in the email that gets sent. Essentially, I'm looking for something that will do this:</p>
  <pre><code>if gender = male then display xyz.male.gif
  if gender = female then display xyz.female.gif
  </code></pre>
  <p>If someone has an example Apache Velocity script (I've never used, so go ahead and laugh) I would be greatly in your debt. I can replicate really well, I just can't figure out from the tutorials how to make <code>foo = bar</code>.... Thanks!</p>