Check if label exists
- 最終更新日2026/05/06
Use the Check if label exists condition to verify whether a specific label exists in your Gmail mailbox or not.
This condition is evaluated within the If package and returns true if the label exists, or false if it does not. It can be used to control automation flow based on the availability of Gmail labels.
Consideration
An error is displayed if the specified Gmail session does not exist when you deploy your automation to check the labels in your Gmail mailbox:
Settings
- Select the Gmail session using one of the following
options:
- Session name: To select an existing Gmail session by name.
- Variable: Select a variable of type Session with sub-type Gmail
- In the Label name field, enter the name of the Gmail label to check if that exists in the mailbox.
You can also click the Insert a value icon to select an existing variable that you have used to store the label name.