How can I check whether multiple variables are equal to the same value?

if((A == 'X' || A == 'O') && A == B && B == C)
{
    // Do whatever
}

Leave a Comment