includeIf and excludeIf in 1.9.10 Not Working

I have the code block below in my html form. The form does not render the expected text in the browser.

<'td'>   
  Before gender check
  <includeIf logicTest='GENDER = F'>
    Female patient
  </includeIf>
  <includeIf logicTest='GENDER = M'>
    Male patient
  </includeIf>
  After gender check

</‘td’>

The tomcat error message is

ERROR - CommonsLogLogChute.log(122) |2015-12-02 11:36:04,194| Parser Exception: org.openmrs.module.htmlformentry.FormEntrySession org.apache.velocity.runtime.parser.ParseException: Encountered “=” at line 1, column 22. Was expecting one of: … “-” … “+” … “*” … “/” … “%” … LOGICAL_AND … LOGICAL_OR> … LOGICAL_LT> … LOGICAL_LE> … LOGICAL_GT> … LOGICAL_GE> … LOGICAL_EQUALS> … LOGICAL_NOT_EQUALS> …

Facts:

  • OpenMRS 1.9.10
  • Oracle JDK 1.7
  • Tomact 7
  • HtmlFormEntryModule version 2.6
  • Got notes from includeIf

How do I get over this error? I would like to hide some html elements when gender is male.

Thanks