How to use or statements in an if statement.

How would i say

if (myplayerlocation == predefinedlocation.transform.position or predefinedlocation2.transform.position or predefinedlocation3)
{
    //do something
{

“||” is the operand for a logical “or”. But you must use three separate comparisons:

if (myplayerlocation == predefinedlocation.transform.position ||
    myplayerlocation == predefinedlocation2.transform.position ||
    myplayerlocation == predefinedlocation3.transform.position )
{
    //do something
{