Report question

Question: How to write inline if statement for print?