Multiple checks in checkif

Hi,
This question has been asked before but no answer have been given. So hopefuly someone can answer this time. :slight_smile:

I want to execute multiple checks in a checkif statement, but it does not work. The below code will only execute the last xpath check: xpath("/foo/bar[2]/@name").find.is(“streetname2”), in other words, the first expression is skipped.

.check( checkIf(statement==true) { xpath("/foo/bar[1]/@name").find.is("streetname1") xpath("/foo/bar[2]/@name").find.is("streetname2") } )

If I skip the checkif statement, it works perfectly:

.check( xpath("/foo/bar[1]/@name").find.is("streetname1"), xpath("/foo/bar[2]/@name").find.is("streetname2") )

So, does anyone know how to make this work, how am I able to execute two or more checks inside a checkIf-statement?
Or is it not possible?

Thanks!

//Mats

This doesn’t work atm (contributions welcome!).

What does:
.check(
checkIf(statement==true)
{
xpath("/foo/bar[1]/@name").find.is(“streetname1”)
},
checkIf(statement==true)
{
xpath("/foo/bar[2]/@name").find.is(“streetname2”)
}
)