<div>Hi,</div><div><br></div><div>I have the following rule and roomCurriculumCode and currCode are of type String. If the check is equals &quot;insertLogical&quot; never happens, but if the the codes are not equal as expressed below the &quot;insertLogical&quot; is performed even if the strings are equal. What am I missing here</div>
<div><br></div><div>    rule &quot;RoomAndCurriculum&quot;</div><div>    when</div><div>    $room : Room($roomCode : code, $roomCapacity : capacity, $roomCurriculumCode : curriculumCode);</div><div>    $curriculum : Curriculum($currCode : code);</div>
<div>    eval($roomCurriculumCode != $currCode)</div><div>    then</div><div>    insertLogical(new IntConstraintOccurrence(&quot;RoomAndCurriculum&quot;, ConstraintType.NEGATIVE_HARD, 1, $roomCapacity, $room, $currCode, $roomCurriculumCode));</div>
<div>    end</div><div><br></div><div>-jd</div>