title: JasperReport - condition in TextElement
body: <p>I'm new at JasperReports. 
  I want to get italic text when some variable will be set at '3'.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;textElement&gt;
  
      &lt;font size="9" pdfFontName="Helvetica" pdfEncoding="Cp1250" isPdfEmbedded="true"
      isItalic=&lt;![CDATA[$F{variable}==3 ? "true" : "false"]]&gt; /&gt;
  
  &lt;/textElement&gt;
  </code></pre>
  
  <p>What am I doing wrong? </p>
  
  <p>I tried also make conditional style but wherever I put  i recive error.</p>