working and/or support for var xpath with conditions