Using Conditional Statements

Conditional statements help you customize your confirmation and reminder emails to booker, as well as your SMS and calendar events based on information they've provided in the booking process. 

In this article:

Formatting Conditional Statements
Conditional statements with Appointment Types
Conditional statements with Booking form questions
Conditional statements with a Checkbox
Conditional statements with a Date or Day
Conditional statements to share a team members static video link

Conditional statement formatting

The basic format is:

{IF}{xxx}{EQUALS}yyy{THEN}aaa{ENDIF}

The statement is saying, 'if the answer to that xxx question is yyy, then display aaa.' 

The {xxx} can refer to many things like:

  • A question on your booking form that is tagged with a Shorthand Code
  • an appointment type using the shorthand code {TYPE-NAME}
  • a team member using the shorthand code {TEAM-NAME}
  • A day of the week booked using the shorthand code {START-DAY}

You can setup multiple IF/THEN statements to account for the different options, and only what your booker selected will be displayed in the email and SMS. 

If there are only 2 options, you can include an {ELSE} statement:

{IF}{xxx}{EQUALS}yyy{THEN}aaa{ELSE}bbb{ENDIF}

This statement is saying 'if the answer to xxx question is yyy, display aaa, otherwise display bbb. 

Your booker will only see what comes after the {THEN} or {ELSE}

It isn't possible to include AND or OR in the conditional statements. But you can create more than one statement for each scenario. For example: 

{IF}{START-DAY}{EQUALS}Monday{THEN} I will meet you at the downtown office at 123 Main St.{ENDIF}

{IF}{START-DAY}{EQUALS}Wednesday{THEN} I will meet you at the West Street office at 457 Mulberry St.{ENDIF}

Each individual conditional statement needs to be 'closed' with the tag {ENDIF}.


Using Conditional statements with Appointment Types

Let's say you have three appointment types you offer. You want to send a different confirmation email depending on which appointment type your booker selects.

The shorthand code for Appointment Types is {TYPE-NAME}.

Under Notifications > Actions > Confirmation Email to the booker, enter your first IF/THEN statement:


The text of the IF/THEN statement that will display in the email if your booker chooses a 30 minute lesson will be:

This product walkthrough will be demonstrated on Zoom. Please join the call on this link.

Continue to create an IF/THEN statement for the rest of your appointment types:

When your booker receives the email, they will only see the text that displays with the Appointment Type they've chosen:


Using Conditional statements with questions on your booking form

When you setup your booking form, you assign each Question a Shorthand code. These are the codes in the curly brackets that populate information based on what your booker enters or selects for that question. 

On this booking form, we've used the shorthand code OS on a multiple choice question, because we want to know which operating system the booker is using:

Now you can build a conditional statement based on the answer they select from the multiple choice options. 

When your booker receives the email, they will only see the text that displays information related to the selection they choose on the booking form:

Using Conditional statements with a checkbox

If the question type on your booking form is a checkbox, you can use conditional statements based on if the box is checked or not. The format is:

{IF}{TERMS}{EQUALS}yes{THEN} Thank you to agreeing to our terms of service. Here is a [link](https://oursite.com/privacy) to our privacy policy for your reference{ENDIF}

Using Conditional statements with a date or day

You can create conditional statements for a day of the week that is booked, if you are in different location depending on the day:

{IF}{START-DAY}{EQUALS}Monday{THEN} I will meet you at the downtown office at 123 Main St.{ENDIF}

{IF}{START-DAY}{EQUALS}Wednesday{THEN} I will meet you at the West side office at 457 Mulberry St.{ENDIF}

You will need to create a statement for each day you may be in a different location. If you don't create a statement for Thursdays and someone books on Thursday, no additional information will display.

You can also create a statement for a specific date booked, like January 22, 2021.

{IF}{START}{EQUALS}Friday, January 22, 20201{THEN} Your booking will take place in Conference Room A. {ENDIF}

Conditional statements to share a team members static video link

If you're not using our Zoom integration to generate unique Zoom links for your team members, you can conditionally share a static video meeting link based on the team member booked. 

Add conditional statements in confirmation emails, as well as in the calendar event description or reminder emails.

In your booking page settings, navigate to Notifications > Actions, and select the email you want to edit, ie Confirmation email to booker. Build out a conditional statement for each team member.

{IF}{TEAM-NAME}{EQUALS}Michelle{THEN}Your meeting will be on Google Meet with Michelle with this link: https://meet.google.com/smo-gvoi-osq {ENDIF}

{IF}{TEAM-NAME}{EQUALS}James{THEN}Your meeting will be on Whereby with James with this link: https://whereby.com/james-room {ENDIF}

{IF}{TEAM-NAME}{EQUALS}Thomas{THEN}Your meeting will be on GoToMeeting with Thomas with this link: https://GoToMeet.me/ThomasSmith {ENDIF}

Depending on which team member is booked, their static video link will appear in all confirmation and reminder emails where this set of conditional statements appear.