title: Referencing fields in BI Publisher RTF template conditional regions
body: <p>I'm putting together a report in the BI Publisher Word .rtf plugin with very specific layout needs. One of those needs is the ability to switch company logos depending on parameters entered. I've been using conditional fields to selectively display each logo, but for some reason I can't reference data fields in the conditional code. </p>
  
  <p>I've used these methods: </p>
  
  <pre><code>&lt;?if: column_name = 'desired_value'?&gt; [logo1] &lt;?end if?&gt; 
  
  &lt;?choose:?&gt;&lt;when: column_name = 'desired_value'?&gt; [logo1] &lt;?end when?&gt;
  </code></pre>
  
  <p>Both of these methods seem to work when given raw values (i.e. instead of column_name = desired_value, I used 1=1 and it printed) but not when I use the name of the column I'm trying to compare.</p>
  
  <p>For a more concrete example:</p>
  
  <pre><code>&lt;?if: p_jno_in &gt; 0?&gt;
  </code></pre>
  
  <p>is always false, as if p_jno_in is null rather than having a value. (this variable represents the job number of the report and will never be null, even in my test data/sample xml.)</p>
  
  <p>EDIT: <a href="https://i.stack.imgur.com/0Wv2X.png" rel="nofollow noreferrer">Here is an example of what I've used, and the output.</a></p>