Please take a look at the case below, of course, which will be interesting.
if I want to assign the same value to multiple objects, I will use something like this
string1 = string2 = string3 = string 4 = "some string";
Now, what I want to do, I want to compare strings string1, string2, string3 and string4 with "someotherstring" ... questions - is there any way to do this without writing a separate comparison. those.
string1 == "someotherstring" || string2 == "someotherstring" || string3 == "someotherstring" || string4 == "someotherstring"
Hope I could explain the question .. kindly provided me with help on this.
Regards, Paresh Ratod
source share