we do this in appium:

if (x) {
  y;
} else (z) {
  a;
}