Boolean expression will always have the same value

I have a few days ago started programming to learn and do not get ahead at this point. I programmed the following script:

pragma strict
var Randomized = 0;
var Money = 500;
function Start () {

}

function OnGUI () 
{
GUI.Box(Rect(500,400,100,20),"Money:" + Money );
if(GUI.Button(Rect(500,300,100,20),"Buy stocks"))
{Randomized = Random.Range(1, 4);
if (true) Randomized = 1; { Randomized = 0; Money -= 100; }
if (true) Randomized = 2; {Randomized = 0;}
if (true) Randomized = 3; { Randomized = 0; Money += 100;}
}


if(GUI.Button(Rect(500,600,100,20),"Back")){Application.LoadLevel ("Menue");}


}

I know there’s a bug but I do not know how the " Boolean expression will always have the same value. (BCW0022) " get away.

The warning you are getting is from the if (true) statements

I think what you probably were trying to achieve is this:

if (Randomized ==1){ //this says if Randomized equals 1
    Randomized = 0;  //then do this stuff
    Money -= 100; 
}
if (Randomized == 2) { //if randomized equals 2,
   Randomized = 0; //do this
}
if (Randomized == 3){ 
   Randomized = 0; 
   Money += 100;
}