1

Like I have do to some steps if some condition comes true how can I write multiple steps in if statement?

* if(responseStatus == 200) call myfunction 

and after that I have to add one more statement under this "if" how will I add that?

1 Answers1

1

a) use a JS function * if(responseStatus == 200) myFunction()

b) use eval

* eval
"""
if (condition) {
   // blah
   // blah
}
"""

For more ideas, read this please: https://stackoverflow.com/a/50350442/143475

Peter Thomas
  • 54,465
  • 21
  • 84
  • 248