0

I'm writing a function like

function myFunction1 ( myFunction2ReturnBool ){
    if (myFunction2ReturnBool()) {
         // Do something if myFunction2ReturnedBool() returned true. 
    }
}

Here, myFunction2ReturnBool() is a function that checks if a condition is fulfilled. Is there a way to get this to work?

nnnnnn
  • 143,356
  • 28
  • 190
  • 232
kovac
  • 4,353
  • 8
  • 41
  • 74

0 Answers0