How to check if a text column includes a value from a Single Value column?

Hello Glide Experts,

I need your help with a filter logic. This seems like it should be simple, but I am completely stuck.

My Goal: I want to create an “AND search”. For example, if a user selects “Pork” and “Onion”, I want to show recipes that include both “Pork” AND “Onion”.

My Setup:

  1. I have a Recipes table. In this table, I have a text column named 食材キーワード which contains comma-separated ingredients (example: Pork,Onion,Pepper).
  2. I also have a Single Value column named ユーザー選択1. This column correctly shows the first ingredient the user selected (example: Pork).

The Problem: I am trying to create an If-Then-Else column named Check1. The logic I want is: IF 'ユーザー選択1' is empty THEN true, ELSE IF '食材キーワード' includes 'ユーザー選択1' THEN true, ELSE false.

However, as you can see in my screenshot, in the ELSE IF part, when I try to check if 食材キーワード includes the value from ユーザー選択1, the column ユーザー選択1 does not appear in the list of values I can select.

My Question: What is the correct way to check if a text column (食材キーワード) includes the value from a Single Value column (ユーザー選択1) inside an If-Then-Else column?

Is there a special syntax I am missing? Thank you so much for your help.

1 Like

Retranslating so it’s easier to read:

1 Like

What is the type of column that the Single Value column is pointing to?

What does the Single Value column look like when it contains multiple values to be searched?

I’m guessing the User Selection is an array which can contain multiple values, so it is not letting you do a single value compare. I have an idea, but I want to first understand where that value comes from that ends up in the Single Value column.

3 Likes

Also interested to hear more on the flow here. Why do you need to use a single value to check the “first” item from a selection? Do you plan to check the same conditions for the 2nd, 3rd choice and so on?

1 Like