bce0044 expecting :, found '='.

i’m making a code in JavaScript, to enable and desable cameras. And there´s an error at 7,17. bce0044. expecting :, found ‘=’. here’s the code:

var camera1 :Camera;
var camera2 :Camera;

function Start () {

{

camera1.enabled = true;

camera2.enabled = false;

}

}

function Update () {

if (Input.GetButton (“q”)){

{

camera1.enabled = true;

camera2.enabled = false;

}

}

if (Input.GetButton (“e”)){

camera1.enabled = false;

camera2.enabled = true;

}

}

what should i do??? thanks!!!

Please format your code properly, otherwise it’s very hard for us to help you. There is a button to mark text as code if you edit your entry.

Also, please tell us which line is line 7. If you want to try and diagnose the problem yourself, please look at line 7, character 17.

Finally, just a quick glance at your code tells me that you shouldn’t be using double braces - every time you have {{, please change this to { and let me know if that fixes the issue.

At the beginning of your if(Input.GetButton(“q”) you have two {.