I have two functions: functionA() and functionB(), both have a return type boolean.
I want to continue my execution if either one of them returns true and if functionA returns true I don't want function B to execute.
As && works (if one is false it does not check the other), does || works the same?
if(functionA() || functionB()){
//Do Your Work
}
Will the above code satisfy my requirement?