Courseiva
Control Flow →mediumMultiple Choice

UiPath-ADAv1 Control Flow Practice Question

In an 'If' activity, what happens if the 'Condition' evaluates to 'True' but the 'Then' branch is empty?

⚠ Common exam trap

Candidates often believe that an empty 'Then' branch will cause a validation error or a runtime exception, rather than simply allowing the workflow to continue silently to the next step.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

✓

The workflow proceeds to the activity following the 'If' block without doing anything.

The 'If' activity is a fundamental control flow component. If the condition is met (True), the workflow engine looks into the 'Then' block. If that block contains no activities, the workflow simply skips that branch and proceeds to the next activity following the 'If' container. This does not cause an error; it simply means no actions were defined for that specific logical outcome.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • ✗

    The workflow throws a Validation Error because both branches must contain at least one activity.

    Why it's wrong here

    UiPath Studio allows for empty branches in If activities. While it is often better for clarity to avoid empty branches, it is not a requirement for a valid workflow. Validation errors usually occur for missing conditions or incompatible data types, but an empty 'Then' or 'Else' block is perfectly acceptable according to the workflow engine's rules and design.

  • ✗

    The 'Else' branch is executed as a fallback.

    Why it's wrong here

    The 'Else' branch is only executed if the condition evaluates to 'False'. If the condition is 'True', the engine is committed to the 'Then' path. It will never fall back to the 'Else' branch just because the 'Then' branch is empty. The logic is binary and strictly follows the result of the boolean expression provided in the condition.

  • ✓

    The workflow proceeds to the activity following the 'If' block without doing anything.

    Why this is correct

    This is the standard behavior. Since the condition was True, the engine entered the 'Then' block, found no work to do, and concluded the 'If' activity. It then naturally moves to the next activity in the sequence. This is a common occurrence during development when a developer has not yet implemented the logic for a specific condition.

  • ✗

    The workflow execution pauses and logs a warning in the Output panel.

    Why it's wrong here

    UiPath does not pause execution for empty blocks, nor does it log warnings for them by default. The workflow engine treats an empty block as a valid, zero-action sequence. While it might not be a 'best practice' to have empty blocks in a finished production robot, the engine handles it silently and efficiently without interrupting the automation process or generating logs.

About these practice questions

This UiPath-ADAv1 question is part of Courseiva's 285-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official UiPath exam blueprint

This UiPath-ADAv1 practice question is part of Courseiva's free UiPath certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the UiPath-ADAv1 exam.