mardi 25 août 2020

IF statement logic or [closed]

If I am using OR operator with not equal why is this coming up with true. Should this return false?

        int x = 8;
        int Archived = 8;
        int Publish = 7;
        if (Archived != x || Publish != x)
        {
            Console.WriteLine("True");
        }
        else
        {
            Console.WriteLine("False");
        }

Aucun commentaire:

Enregistrer un commentaire