dimanche 27 août 2017

Boolean inside the If Statement

I have to create multiple if results and end with a catch all which I would assume would be the false in the Boolean result. I am having trouble assigning the Boolean.

            if this.Label.Text = Frank)
            {
                this.Result.Text = "Correct";
            }
            {
                if this.Label.Text = Puppet)
                {
                    this.Result.Text = "Great";
                }
                {
                    if this.Label.Text = Merida)
                    {
                        this.Result.Text = "Ohyea!";
                    }
                    {
                        if this.Label.Text = ANYTHING ELSE)
                        {
                            this.LblResult.Text = "No way";

Aucun commentaire:

Enregistrer un commentaire