im trying to this code but i encounter this errors;

invalid expression term 'else'
the name "If' does not exist in the current context

Code:
            If(i > 12);
            {
                i = 1;
            }
            else();
            {
                i = i + 1;
            }