Im trying to get a check box that if checked will only show activitiy codes that are not null, if not checked then I would like it to show every row. This is what I have: WHERE comp_code = $P{enter_company} and $X{IN,p_proj, Select_Project_Multi} I would like to add something to this sort: and (case when $P{Linked_Only} = 'True' then ACTIVITY_CODE is not null else when $P{Linked_Only} = 'False' then ACTIVITY_CODE end)