apps
2023.10
true
- Getting Started
- Before You Begin
- How To
- Build Your First App
- Build a Mobile-friendly App
- Embed Apps
- Embed Maps
- General User Experience Guidelines
- Hide Containers Using a Button
- Include Excel Charts in Apps
- Include MailTo Links
- Include Star Ratings
- Use Count With Choice Set Values
- Use Document Viewer
- Use Master Detail View
- Use Selected Values From a Table
- Use the Send Interim Result Activity
- Set External Context
- Work With Data Source and Value Bind
- Notifications
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Values
- Rule: Start Process
- Rule: Upload File to Storage Bucket
- Rule: Get File From Storage Bucket
- Rule: Reset Values
- Rule: Create/Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Function: And, Or, Not
- Function: Concat
- Function: Contains
- Function: Count
- Function: EndsWith
- Function: If
- Function: IsBlank
- Function: Guid
- 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
- Function: New
- Function: Lookup
- Function: Filter
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide
Function: If
LEGACY
Legacy Apps User Guide for Automation Suite
Last updated Jan 18, 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