you should check your conditions, perhaps you can tie some of them with logical operators.. && or ||
But.. if you want a switch or case statements I assume you are trying with diferent values.. so you don't need nested if/else
Try this:
Code: ags
In this form you don't need to have nested the ifs.
But.. if you want a switch or case statements I assume you are trying with diferent values.. so you don't need nested if/else
Try this:
if (myvar == 1)Ã, Ã, Ã, Ã, Ã, Ã, Ã, Ã,Â
{ //do stuf }
ifÃ, (myvar == 2)
{ //do another stuff}
Ã, Ã, Ã, Ã, Ã, .
Ã, Ã, Ã, Ã, Ã, .
Ã, Ã, Ã, Ã, Ã, .
if (myvar == 80)
{ // do more stuff}
else
{ // alternative stuffÃ, }
In this form you don't need to have nested the ifs.