If statement | multiple OR

Hello,

What is wrong in below check

((string.Equals(“Rimini”,in_City)) || (string.Equals(“Berlin”,in_City)))

Thanks

In VB.NET or operator is or. || operator is used in C#.

1 Like

@callsaurabh Try like below

((string.Equals(“Rimini”,in_City)) OR (string.Equals(“Berlin”,in_City)))

Use Trim option if any extra spaces is present in beginning or ending it will be removed.

((string.Equals(“Rimini”,in_City.Trim)) OR (string.Equals(“Berlin”,in_City.Trim)))

1 Like

Thanks @KannanSuresh

Thanks @Manjuts90

1 Like