what returns true if condition os false
Answers
Answered by
0
Answer:
You should be able to just call the function within the IF condition so:
if (isValid()) {
}else {
}
Since isValid() returns a boolean the condition will be evaluated right away. I have heard it is better form to create a local var just before you test you condition
Similar questions