apps
latest
false
important :
For documentation on app projects in Studio Web, refer to the App Projects chapter in the Studio Web documentation: https://docs.uipath.com/studio-web/automation-cloud/latest/user-guide/apps-in-studio-web.
UiPath logo, featuring letters U and I in white
LEGACY

Apps User Guide

Last updated Aug 5, 2024

Function: If

Use this function to check if a condition is met.

Syntax

Description

Example

If(Condition(s), IsTrue[Otherwise])

Returns one value if a condition is true and another value if not.

docs image

Arguments

For more information on arguments, see the table below.

Argument

Type

Description

Condition(s)

Required

Conditions/Expressions to test for true.

IsTrue

Required

The value to use if the condition evaluates to true.

Otherwise

Optional

The value to use if the condition(s) do not evaluate to true. If nothing is specified then nothing is returned.

Examples

  • If(true, “Apricot”, “Blackberry”): Apricot
  • If(false, “Apricot”, “Blackberry”): Blackberry
  • If(1 > 0, “Apricot”, “Blackberry”): Apricot
  • If(1 < 0, “Apricot”, “Blackberry”): Blackberry
  • If(true && 1 > 0, “Apricot”, “Blackberry”): Apricot
  • If(true, If(1 > 0, “Apricot”, “Blackberry”), "Raspberry"): Apricot
  • If(false, If(1 > 0, “Apricot”, “Blackberry”), "Raspberry"): Raspberry

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
© 2005-2025 UiPath. All rights reserved.