Added function that evaluates asynchronous if-else blocks.