Problem when using if condition in php
I am generation dynamic data to a php variable like.

    $check=("native american"=="south asian") || ("native american"=="pacific islander") || ("native american"=="white") || ("native american"=="black") || ("native american"=="latino") || ("native american"=="european") || ("native american"=="middle eastern") || ("native american"=="mixed") || ("native american"=="non-human") || ("native american"=="other")
    if($check)
    {
    echo "success";
    }
    else
    {
    echo "failed";
    }


But the problem is,it shows success message unless condition is not satisfying .i am unable find the probelm .

Thank You
Problem when using if condition in php
===

I am generation dynamic data to a php variable like.

    $check=("native american"=="south asian") || ("native american"=="pacific islander") || ("native american"=="white") || ("native american"=="black") || ("native american"=="latino") || ("native american"=="european") || ("native american"=="middle eastern") || ("native american"=="mixed") || ("native american"=="non-human") || ("native american"=="other")
    if($check)
    {
    echo "success";
    }
    else
    {
    echo "failed";
    }


But the problem is,it shows success message unless condition is not satisfying .i am unable find the probelm .

Thank You