apps
2021.10
false
- Before You Begin
- Getting Started
- How To
- Designing your App
- Events and Rules
- Function: And, Or, Not
- Function: Concat
- Function: Contains
- Function: Count
- Function: EndsWith
- Function: If
- Function: IsBlank
- Function: Length
- Function: List
- Function: StartsWith
- Function: Sum
- Function: Sort
- Function: Now
- Function: Today
- Function: Time
- Function: Year
- Function: Month
- Function: Day
- Function: Hour
- Function: Minute
- Leveraging RPA in your App
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide
Function: If
OUT OF SUPPORT
Apps User Guide for Automation Suite
Last updated Nov 11, 2024
Function: If
Conditional evaluation (either/or)
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. |
|
For more information on arguments, see the table below.
Argument |
Type |
Description |
---|---|---|
|
Required |
Conditions/Expressions to test for true. |
|
Required |
The value to use if the condition evaluates to true. |
|
Optional |
The value to use if the condition(s) do not evaluate to true. If nothing is specified then nothing is returned. |
If(true, “Apricot”, “Blackberry”)
: ApricotIf(false, “Apricot”, “Blackberry”)
: BlackberryIf(1 > 0, “Apricot”, “Blackberry”)
: ApricotIf(1 < 0, “Apricot”, “Blackberry”)
: BlackberryIf(true && 1 > 0, “Apricot”, “Blackberry”)
: ApricotIf(true, If(1 > 0, “Apricot”, “Blackberry”), "Raspberry")
: ApricotIf(false, If(1 > 0, “Apricot”, “Blackberry”), "Raspberry")
: Raspberry