I am trying to make a simple if and and and condition but it breaks the operator and gives the same result: Your are a parrot. Is there any fix?
if (mouse > dog & mouse > cat & mouse > parrot);
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.a;
}
if (dog > mouse & dog > cat & dog > parrot) ;
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.b;
}
if (cat > mouse & cat > dog & cat > parrot) ;
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.c;
}
if (parrot > mouse & parrot > dog & parrot > cat) ;
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.d;
}
I was expecting: You are a mouse!
if (mouse > dog & mouse > cat & mouse > parrot);
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.a;
}
if (dog > mouse & dog > cat & dog > parrot) ;
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.b;
}
if (cat > mouse & cat > dog & cat > parrot) ;
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.c;
}
if (parrot > mouse & parrot > dog & parrot > cat) ;
{
this.BackgroundImage = Animal_Personality_Test.Properties.Resources.d;
}