In the Print when Expression field, I put the following condition to show or hide the frame: IF((($F{imp_item_revision_id_1}.isEmpty()==false) || ($F{sol_item_revision_id_1}.isEmpty()==false)), Boolean.TRUE,Boolean.FALSE) If one of the two conditions is true, the frame should be displayed. But if the first is false and the second is true, in this case the frame disappears. I dont understand why?