IF statement finalized