Use of IF-THEN-ELSE for Widnows app testing


I have written a lot of webUI test where I could use if-then-else constructions to switch dynamically to a scenario.
Is this also possible in Windows DesktopApp Testing? First attempt was failing, as I could nog give an effective ChangeFailureHandling parameter to the command.