Updates warning method

If, then, else formatting of variable pre