mistake in script

First I want to ask this :
I wrote that script and add it to player… but it doesn’t work (C#) . could you please correct it for me?

using UnityEngine;
using System.Collections;

public class Wipe : MonoBehaviour
{

// Use this for initialization
void Start () {

}

// Update is called once per frame
void Update ()
{
    {
        if (transform.position.x > 709)

            transform.position = new Vector3(-1300, transform.position.y, transform.position.z);
    }
    {
        if (transform.position.x < -1310)

            transform.position = new Vector3(700, transform.position.y, transform.position.z);

    }

}

}

I think your brackets are wrongly placed?

Try this:

using UnityEngine; 
using System.Collections;

public class Wipe : MonoBehaviour 
{

    // Use this for initialization
    void Start () 
    {
    } 

    // Update is called once per frame
    void Update ()
    {
        if (transform.position.x > 709)
        {
            transform.position = new Vector3(-1300, transform.position.y, transform.position.z);
        }

        if (transform.position.x < -1310)
        {
            transform.position = new Vector3(700, transform.position.y, transform.position.z);
        }
    }
}

Think of brackets {} like () in a piece of math.

You make a function with Multiply(a,b) etc. so the () follows the function.

Same goes for your IF structures.

IF (condition)

Now if the condition is meet, then you use the {} to encapsulate the things to happen.

Like

if (condition is true)
{  
   // do this 
}
else // condition isnt true aka false
{
   // do something else
}