title: How can I do a complex IF statement in visualforce?
body: <p>I'm totally new to this, the task has been thrown at me as important and I've never done anything like this before. I have been given a template containing roughly this:</p>
  
  <pre><code>        &lt;apex:column headervalue="Amount"&gt;&lt;c2g:CODAFormatterController number="{!IF([some condition],[something],[something else])}"/&gt;&lt;/apex:column&gt;
  </code></pre>
  
  <p>I've replaced the statements with condition/something/something else</p>
  
  <p>is there a way to use a function as you'd do in javascript, so something like</p>
  
  <p>number="getNumber(x);"</p>
  
  <p>or do I have to chain some IF statements together somehow? Is there an IF...ELSE?</p>
  
  <p>I don't know what a CODAFormatterController is as it returned 0 results on google.</p>
  
  <p>Any advice would help, I'm afraid I've been thrown in at the deep end here!</p>