Courseiva
Control Flow →easyMultiple Choice

UiPath-ADAv1 Control Flow Practice Question

A developer is configuring an If activity to check whether a string variable named Status equals "Approved". The developer wants the Then branch to execute only for that exact value. Which expression should be placed in the Condition property?

⚠ Common exam trap

The trap here is assuming that UiPath expressions follow C-style syntax and that double equals is required for equality, when UiPath actually uses Visual Basic syntax with a single equals sign.

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

✓

Status = "Approved"

UiPath uses Visual Basic expression syntax, where a single equals sign performs equality comparison. The expression Status = "Approved" returns True only when the variable exactly matches the specified text, which is precisely what the scenario requires. The other options either use invalid syntax for UiPath or perform broader comparisons that would trigger the Then branch for unintended values.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Status.Equals("Approved", StringComparison.OrdinalIgnoreCase)

    Why it's wrong here

    This expression performs a case-insensitive comparison, so it would also return True for values such as "approved" or "APPROVED". The scenario explicitly requires the Then branch to execute only for the exact value "Approved", so a case-insensitive match is too permissive. While the syntax is valid, the behavior does not match the stated requirement.

  • ✗

    Status.Contains("Approved")

    Why it's wrong here

    The Contains method returns True if the string merely includes the substring "Approved", so values like "Not Approved" or "Approved Pending" would also satisfy the condition. That is broader than the exact-match requirement in the scenario. Although the syntax is valid in UiPath expressions, using Contains here would cause the Then branch to run in cases where it should not.

  • ✓

    Status = "Approved"

    Why this is correct

    In UiPath expressions, the single equals sign is the equality operator, so Status = "Approved" evaluates to a Boolean and returns True only when the variable contains exactly that text. This is the correct syntax for the If activity Condition property in this scenario, and it satisfies the requirement that the Then branch run only for the exact value.

  • ✗

    Status == "Approved"

    Why it's wrong here

    Although double equals is the equality operator in C# and many other languages, UiPath expressions use Visual Basic syntax, where a single equals sign performs comparison. Writing Status == "Approved" in the Condition property will not compile as intended and will produce a validation error. It is a common mistake for developers coming from C-style languages and does not meet the scenario requirement.

About these practice questions

One of 285 original UiPath-ADAv1 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.