title: how to use conditional statement in Pug
body: <p>I have the following PUG code I want to use the <strong>if</strong> statement so that  I will print the submit button using the <strong>for</strong> loop  </p>
  
  <pre><code>html
      head
          title test
          link(type="text/css" rel="stylesheet" href="css/styles.css")
          meta(name="viewport" content="width=device-width, initial-scale=1")
      body
          -inputTypes = ['text','email','password','password']
          -placeholders = ['username','email','password','confirm password']
          -values = ['submit']
          div.cont_login
              center
                  img(src="images/user.png")
                  form(method="post" action="index.html")
                      for i in [0,1,2,3]
                          input(type=inputTypes[i] placeholder=placeholders[i])
                      input(type="submit" value="submit")
  </code></pre>