add IF statement pringtiny code