Overview

In this article, we explain the conditions you create with Boolean values. Later on, these conditions are used to generate user segments in UserGuiding.

If your custom segments conditioned with Boolean values are not providing you expected results, examine the conditions shared below.

Where to Use Boolean Values?

There are only two boolean values which are True and False. In UserGuiding, while creating a custom attribute, you can select the Data Type as True or False. Boolean Values are used in your custom segment event layer to group end-users in a certain way.

What is a Custom Attribute?

Example Custom Attribute with Boolean Values

Below, we create a sample custom attribute.

  • The ‘client' is the key field in our event layer and we call it the identifier of the custom attribute, which is the variable name.
  • The data format is chosen as Boolean.
  • UserGuiding is chosen as the data source.

This way, we can use the client custom attribute as an end-user property to group end users and include them into a user segment or, exclude the rest of the users from client users.

How to create a custom attribute when Data Format is True or False?

How Segmentation Conditions Correspond to User Data?

In order to explain the Segmentation conditions created with Boolean Values, we use the sample custom attribute called "client".

What are Segmentation Properties and Rules?

We set conditions for end-users to be grouped into a certain segment. The condition is set with three items below.

  1. Property (ex: Client)
  2. Rule (ex: is or isn't)
  3. Value (ex: True or False)

When you select Boolean Values as the Data Type in your custom attribute, we expect the segmentation Value to be True or False. And the rules can be "is" or "is not".

The data you set to your selected data source is in the format of the key-value pair.

  • Key: Client
  • Value: True, False, null, undefined, etc.

As you can see, The ‘Client' is the key field in our event layer, and based on the segmentation condition, you can include in or exclude end-users from a user segment.

What are the Conditions Created with Boolean Values?

1. The condition: is True

"Client is True" condition means that only end-users whose user data set as Client: True will be included in the above segment.

If the user data corresponds to any of the following:

  • Client: False
  • Client: null
  • Client: undefined

Or, if the data type user has is in another format such as number, string, etc. They won't be included in the "Client Users" segment.

In other words, the exact condition of the segmentation must be met by the data which is owned by an end-user.

2. The condition: is False

"Client is False" condition means that only end-users whose user data set as Client: False will be included in the above segment.

If the user data corresponds to any of the following:

  • Client: True
  • Client: null
  • Client: undefined

Or, if the data type user has is in another format such as number, string, etc. They won't be included in the "Not Client Users" segment.

3. The condition: is not True

"Client is not True" condition means that all end-users whose user data is not Client: True will be included in the above segment.

In other words, only end-users whose user data set as Client: True will be excluded from the Not Client Users segment.

If the user data corresponds to any of the following:

  • Client: False
  • Client: null
  • Client: undefined

Or, if the data type user has is in another format such as number, string, etc. They will be included in the "Not Client Users" segment.

4. The condition: is not False

"Client is not False" condition means that all end-users whose user data is not Client: False will be included in the above segment.

In other words, end-users whose data explicitly set to Client: False are excluded from the "All users except the non-clients" segment.

If the user data corresponds to any of the following:

  • Client: True
  • Client: null
  • Client: undefined

Or, if the data type user has is in another format such as number, string, etc. They will be included in the "All users except the non-clients" segment.

Related Articles:

What are Segmentation Properties and Rules?
Creating a New-User Segment with the Custom Attribute

Custom Attributes When Data Source is the Browser Local Storage

Did this answer your question?