-1

I want to write if(myFunction.equals("This String OR This string")){ My code } Unable to implement the logic.

1 Answers1

0

You can't do that as you want it from our example. You have to do it like so:

if(myFunction.equals(firstString) || myFunction.equals(secondString))

PaianganuOm
  • 254
  • 1
  • 10