If statement for serial display project