I am trying to create an HTML Report that will print out the different line items. If the item is null, then I want it to skip the item, but I want to code to be able to handle the item when it is not null. My code currently is giving me an illegal expression error on my if statement. I think I have some kind of variable type issue.
<tr><td>
<%= if(rs.getString("delivery0delivery_address_2") != null){
rs.getString("delivery0delivery_address_2")
}
else{
%>
<br>
<%=
}
%>