- Getting started with Airtable
- Introduction to Airtable basics
- Contacting Airtable Support Updated
- Airtable home screen
- Glossary of Airtable terminology
- Airtable technical requirements
- Feature differences between Airtable on desktop and mobile
- Airtable keyboard shortcuts
- Using Markdown in Airtable
- Adding descriptions in Airtable
- Finding Airtable IDs
- Airtable Automations
- Automations Overview
- Automation feature walkthroughs
- Integrated automation walkthroughs
- Airtable automation walkthroughs
- Linking existing records using automations
- Conditional groups of automation actions
- Repeating groups of Airtable automation actions
- Creating recurring records using automations
- How to delay Airtable automation runs
- Prevent automations from triggering by mistake
- Use automations to timestamp status updates
- Automation Triggers
- Airtable Triggers
- Airtable automation trigger: When record matches conditions
- Airtable automation trigger: When a form is submitted
- Airtable automation trigger: When record created
- Airtable automation trigger: When record updated
- Airtable automation trigger: When record enters view
- Airtable automation trigger: At scheduled time
- Airtable automation trigger: When webhook received
- Airtable automation trigger: When a button is clicked
- Airtable automation trigger: When email received Updated
- Integrated Triggers
- Airtable Triggers
- Automation Actions
- Airtable Actions
- Airtable automation action: Send email Updated
- Airtable automation action: Create record
- Airtable automation action: Update record
- Airtable automation action: Find records
- Airtable automation action: Sort list
- Airtable automation action: Run a script Updated
- Airtable automation action: Generate with AI
- Integrated Actions
- Airtable automation actions: Slack
- Airtable automation actions: Google Workspace
- Airtable automation action: Send MS Teams message
- Airtable automation actions: Outlook
- Airtable automation actions: Jira Cloud
- Airtable automation actions: Jira Server / Data Center
- Airtable automation actions: Salesforce
- Airtable automation action: Create post in Facebook Pages
- Airtable automation actions: GitHub Issues
- Airtable automation action: Hootsuite post
- Airtable automation action: Send Twilio SMS
- Airtable Actions
- Airtable Bases
- Using Airtable Cobuilder
- Airtable bases overview
- Creating and managing Airtable bases
- Structuring bases in Airtable
- Moving bases between workspaces in Airtable
- Creating and managing tables in Airtable
- Creating Airtable base share links
- Importing third-party data into Airtable
- Using insights in Airtable
- Troubleshooting Airtable base performance
- Airtable Betas
- Collaborating in Airtable
- Airtable Enterprise Support
- General Enterprise information
- External badging in Airtable
- Using app library and components in Airtable Updated
- Ask an Expert beta overview
- European data residency at Airtable
- Airtable user groups overview
- Airtable Enterprise API
- Creating and managing data retention policies in Airtable
- eDiscovery APIs in Airtable
- Airtable and data loss prevention
- Accessing Enterprise audit logs in Airtable
- Set up Jira Server / Data Center to connect with Airtable
- Admin panel pages
- Airtable admin panel overview
- Users - Airtable enterprise admin panel
- Airtable admin panel user details
- Groups - Airtable admin panel
- Workspaces - Airtable Enterprise Admin Panel
- Bases - Airtable admin panel
- Interfaces - Airtable admin panel
- Data sets - Airtable admin panel
- Managed apps - Airtable admin panel
- Components - Airtable admin panel
- Reports - Airtable admin panel
- Settings - Airtable admin panel Updated
- Managing Enterprise organizations
- Managing Enterprise admins in admin panel
- Using Organizations
- Organization branding for apps in Airtable
- Enterprise Hub in Airtable
- Enterprise Hub: Org unit assignment with user groups Updated
- Deactivating, removing access, and reactivating users in the admin panel
- Managing user access to workspaces and bases
- Airtable Enterprise Key Management Updated
- Custom terms of use New
- Enterprise SSO
- General Enterprise information
- Airtable Extensions
- Airtable Fields
- Fields Overview
- Attachment
- Date-based fields
- Formula
- Getting Started with Formulas
- Formula Foundations
- The essentials of Airtable formulas
- Formula writing tips for beginners
- Troubleshooting formulas
- Basic calculations
- Conditional statements
- Logical arguments
- Working with dates
- Displaying DATETIME_FORMAT using the date field in Airtable
- Working with date functions in Airtable
- Calculating the difference between dates in Airtable
- Supported DATETIME_DIFF unit specifiers in Airtable
- Supported DATETIME_FORMAT format specifiers in Airtable
- Using the DATETIME_PARSE() formula in Airtable
- Working with timezones
- Record functions
- Text functions
- Numeric functions
- Common Solutions: Beginner
- Common Solutions: Intermediate
- Common Solutions: Advanced
- Long Text Field
- Linked Record Field
- Linking records in Airtable
- Limiting linked record selection to a view in Airtable
- Dynamic filtering in linked record fields
- Linking to one, many, or a subset of Airtable records
- Converting existing fields to Airtable linked records
- Reordering record links in Airtable
- Understanding linked record relationships in Airtable
- Number-Based Fields
- Other Fields
- Rollup, lookup, and count fields
- Select and user fields
- Integrating with Airtable
- API
- Getting started with Airtable's Web API
- Creating personal access tokens
- Airtable Webhooks API Overview
- Service accounts overview
- Airtable Web API - Using filterByFormula or sort parameters
- Airtable API Deprecation Guidelines
- Airtable API: Common troubleshooting
- Managing API call limits in Airtable
- URL length limitations for web API requests
- Integration services
- Third-party integrations via OAuth overview
- Troubleshooting disconnected OAuth integrations in Airtable
- Options for integrating with Airtable
- Third-party integrations - Common troubleshooting
- Low-code integrations - Common troubleshooting
- Integrating Airtable with external calendar applications
- Visualizing records from Airtable in Tableau
- Visualizing Airtable records in Microsoft Power BI & Power Query
- Integrating HubSpot with Airtable
- Using Zapier to integrate Airtable with other services
- Using Zapier's Multi-Step Zaps to find and update records
- Using IFTTT to integrate Airtable with other services
- Integrating with AWS Lambda & DynamoDB
- Developer tools
- API
- Airtable Interface Designer
- Interface Designer overview articles
- Interface layouts
- Interface elements
- Adding and removing elements in interfaces
- Adding layouts to interfaces
- Formatting elements in interfaces
- Interface element: Button
- Interface element: Calendar
- Interface element: Chart
- Interface element: Filter
- Interface element: Gallery
- Interface element: Grid
- Interface element: Kanban
- Interface element: Number
- Interface element: Record picker
- Interface element: Text
- Interface element: Timeline
- Learning and Resources
- Managing Airtable
- Airtable Policy
- Airtable Records
- Airtable Sync
- Airtable Views
- Airtable Workspaces
- Print
- Share
- DarkLight
- PDF
Evaluating arguments using AND() and OR() in Airtable
- Updated on 17 Jan 2024
- 4 Minutes to read
- Print
- Share
- DarkLight
- PDF
This article covers how to evaluate arguments using AND() and OR() to streamline your team's and organization's work.
Introduction
All plan types | |
Platform(s) | Web/Browser, Mac app, and Windows app |
Related reading |
Understanding AND() and OR()
Function | Behavior | Use case | Structure |
---|---|---|---|
| Returns true if all the arguments are true, returns false otherwise. | Using | |
| Returns true if any one of the arguments is true, returns false otherwise. | Using |
|
Using AND() in Airtable
Using AND()
AND()
can be used on it's own as a standalone function, and it can also be used in conjunction with conditional statements.
As an example of using the function on it's own, let's write a formula to check if the following fields have a value in them:
Status
Project Owner
Due Date
Regardless of what function you're using, you can reference a field name to see if it has anything entered in it. For example, to check if a {Status} field has a value, you can just write: IF({Status}....
AND( {Status}, {Project Owner}, {Due Date} )
Plain textIf all three fields have any value in them, the formula will return a 1, otherwise a 0.
![](http://cdn.airtable.document360.io/d0ee2ee4-3f78-47c7-b388-85e40be9fb89/Images/Documentation/image-1656575317052.png)
Notice that only the first record has a value of 1
because all three fields referenced in the formula have something entered in the field.
Using AND() with conditional statements
Taking the function a step further, let's see what it looks like to nest it within another statement. Using the same table structure, you have the following criteria:
Projects that are assigned to Nathan
And projects that are in progress
Should show the message, "Nathan - Active"
Using AND()
, here is the formula you would write:
IF(
AND(
{Project Owner} = "Nathan Anderson",
Status = "In Progress"
),
"Nathan - Active"
)
Let's change the criteria to look for the following:
For projects that are not started
And projects without a project owner
Show a message, "Needs Owner"
Otherwise, show "Next in Queue"
Here’s the formula:
IF (
AND (
{Status} = "Not Started" ,
{Project Owner}
),
"Next in Queue" ,
"Needs Owner"
)
And here’s the result:
Let's build in some more complex conditions using AND()
For projects that are not started
And projects with a project owner
Show a message, "Next in Queue"
Otherwise, show "Needs Owner"
And for projects in progress, show "Due Soon"
Otherwise, for complete projects show "Complete"
Here’s the formula:
IF(
AND(
{Status} = "Not Started",
{Project Owner}
),
"Next in Queue",
IF(
AND(
{Status} = "Not Started",
{Project Owner}=BLANK()
),
"Needs Owner",
IF(
AND(
{Status} = "In Progress",
{Due Date}
),
"Due soon",
"Complete"
)
)
)
And the result:
NOTE
The formula above is not complete, as it doesn't account for all potential scenarios when some of the field values are empty. It's only meant to show a portion of the various
AND()
functions and their usage.
Using OR() in Airtable
Using OR()
The OR()
function can also be used alone, or in combination with other functions.
Remember that when used by itself, OR()
produces either a 1
or 0
depending if *any* of the criteria listed in the statement are true. For example, OR (5+5=10, 5+5=12)
will evaluate as 1
because one of the statements is true.
As an example, you want to display a message depending on the quantity of available items you have in stock. Let's start with the function by itself:
OR(
{Status} = "Out of Stock",
{Status} = "Delayed Backorder"
)
Here’s the result:Using OR()
with conditional statements
Building on the previous section, you may now want to display a message depending on if the result is a 1 or 0. You want to show "Available for purchase" if the item is in stock, or "Currently unavailable" if it is out of stock or on delayed backorder.
IF(
OR(
{Status} = "Out of Stock",
{Status} = "Phased Out"
),
"Currently unavailable",
"Available for purchase"
)
Here is the example result for that formula:
Combining AND() and OR() in Airtable
Combining AND() and OR()
Here’s an example of combining AND()
and OR()
together.
IF(
Status = "In Stock",
"Available for purchase",
IF(
AND(
Status = "Out of Stock",
{Re-order}
),
"Check back soon for availability",
IF(
OR(
Status = "Phased Out",
Status = "Recalled"
),
"No longer selling this product",
"Unavailable for purchase"
)
)
)
And here’s the result you can expect: