I want to execute more than 1 statements provided an If condition is true. I want to know whether and how is it achievable in Intuit Karate framework.
In the Karate documentation, I find examples like below all of which have only one statement to be executed if the If condition is satisfied as listed below.
if (env == 'dev') karate.configure("ssl", true)
if (responseStatus == 200) karate.call('delete-user.feature')
if (responseStatus == 404) karate.abort()
I want to achieve something like below (only a pseudocode representation of my requirement and not as per the actual Karate syntax)
if (responseStatus ==200)
#statement 1
#statement 2
#statement 3
#end of If
Thanks!