# If nick name is same?

**URL:** <https://community.thunkable.com/t/if-nick-name-is-same/1462796>\
**Category:** Questions about Thunkable X\
**Created:** [August 22, 2021, 6:55am UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796 "2021-08-22T06:55:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [August 22, 2021, 6:55am UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/1 "2021-08-22T06:55:40Z")

</div>

What do I do when compare the Nickname(User input) and  
the other input Nickname that already entered in Airtable?

if I have the same, I want to output an alert,  
if I don’t have one, I want to enter it into the DB?

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [August 29, 2021, 6:01am UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/2 "2021-08-29T06:01:32Z")

</div>

No Help ???

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 29, 2021, 6:51am UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/3 "2021-08-29T06:51:11Z")

</div>

Your question is very similar to this topic:

> [@Compare number in list](https://community.thunkable.com/t/compare-number-in-list/1467122):
>
> Hi All, i want to compare number in list. if similar it will saying same number and if not, the number is available. below is the block and seem not reflect what i want.

If you are still stuck after reading that, post a screenshot of your blocks.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [August 29, 2021, 12:16pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/4 "2021-08-29T12:16:31Z")

</div>

what’s the problem???

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/4/04fe93deff6586b107bb97ab145ddd77511b4538.jpeg)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 29, 2021, 12:20pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/5 "2021-08-29T12:20:32Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/b/ab0a383078c06d0848c2671bf5f55fa123099711.jpeg)

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [August 29, 2021, 5:11pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/6 "2021-08-29T17:11:20Z")

</div>

not working… no alert window

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/3/931965b9abd38448bf80dc377d7fcb40a778686d.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 29, 2021, 5:24pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/7 "2021-08-29T17:24:43Z")

</div>

There are a few problems with your latest screenshot:

1. You are initializing NNick to an empty text string ("") but then assigning it a column object value. Delete the “” text block from the initialize block.
2. You can’t compare a text input value, which is a text string, to a column, which is an object. You need to get a property/cell from the column and then compare that to the text input value.
3. Alerts need more than a Title value to work properly. See the documentation or tutorials by Googling _alert Thunkable_.

---

<div class="post-metadata">

**Author:** ![Michael\_Rogulla](https://avatars.discourse-cdn.com/v4/letter/m/ba8739/32.png) [@Michael\_Rogulla](https://community.thunkable.com/u/Michael_Rogulla)\
**Post date:** [August 29, 2021, 9:19pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/8 "2021-08-29T21:19:58Z")

</div>

I think that the green “column” gives a list. It contains all values of the columnName “Nick”. Please try a list operator like “if does list (column) contain (NickInput’s Text)” → do alert …

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [August 30, 2021, 11:33am UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/9 "2021-08-30T11:33:43Z")

</div>

1. IS “null” ok instead of “” ?

2. Please advise me how… or give me example ??

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 30, 2021, 1:54pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/10 "2021-08-30T13:54:45Z")

</div>

No. `null` is **NOT** the same as “” `empty text`.

**[Edit]**

Because the `green block column` is actually a **list** your blocks will not work. You need to loop through all the entries in the `green block column` and check the entries one by one.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [August 30, 2021, 3:52pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/11 "2021-08-30T15:52:13Z")

</div>

You don’t need to initialize the variable to a value. Just leave the block open/empty.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [August 30, 2021, 9:04pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/12 "2021-08-30T21:04:26Z")

</div>

Error happens …

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/35a8fc9806acd92cec7192652bd644ab57058d59.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 30, 2021, 9:11pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/13 "2021-08-30T21:11:42Z")

</div>

Three problems.

1- Remove `List component` in the block `set app variable NNick to`.

2- Remove `get property ..... of object`. It should be `If j = app variable NNick`.

3- `set Alert1 Title` should come before `Alert1 Show`, not inside it.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [August 31, 2021, 8:20pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/14 "2021-08-31T20:20:30Z")

</div>

not working, I edited the code by your advice.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/3/a39d76af929b0bf738d664ac5592b68912e40c7d.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [August 31, 2021, 8:40pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/15 "2021-08-31T20:40:50Z")

</div>

> [@jumalcom222](#):
>
> not working

This would hardly describe the problem. What is **not working** in the code?

---

<div class="post-metadata">

**Author:** ![secondaryaccount](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/secondaryaccount/32/91441_2.png) [@secondaryaccount](https://community.thunkable.com/u/secondaryaccount)\
**Post date:** [August 31, 2021, 8:57pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/16 "2021-08-31T20:57:20Z")

</div>

I agree. Each of your posts is “Error happens” or “Not working.” We need to know more than that to be able to help you. It helps if you explain what you expect to happen and what actually happens when you preview the project.

---

<div class="post-metadata">

**Author:** ![jumalcom222](https://avatars.discourse-cdn.com/v4/letter/j/df788c/32.png) [@jumalcom222](https://community.thunkable.com/u/jumalcom222)\
**Post date:** [September 1, 2021, 5:30pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/17 "2021-09-01T17:30:05Z")

</div>

alert not shown…

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [September 1, 2021, 5:41pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/18 "2021-09-01T17:41:36Z")

</div>

There are many reasons that would prevent the `alert` from showing.

A simple reason if the Nick name in the table is **Muneer** but the user typed **muneer** (notice the first character “M” is upper case in one side and lower case in the other) the test condition will fail and to the app they are **NOT the same** and therefore the `alert` will not show.

Another reason is your Airtable connection has an error therefore the `column` block will be **empty**.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 1, 2021, 6:47pm UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/19 "2021-09-01T18:47:56Z")

</div>

You should add blocks to your If/Else block so that you can better understand what is or is not working. Right now, your “if” block condition results in either an alert being shown or nothing happening (setting a text input block’s value to it’s value does nothing). Instead, change the value of a label or text input to something you’ll recognize like “j=text input” and “j≠text input”. Then you can preview and see where the program is getting stuck or whether it’s evaluating the if/else condition as true or false.

---

<div class="post-metadata">

**Author:** ![vishruth-ram](https://avatars.discourse-cdn.com/v4/letter/v/82dd89/32.png) [@vishruth-ram](https://community.thunkable.com/u/vishruth-ram)\
**Post date:** [September 2, 2021, 11:06am UTC](https://community.thunkable.com/t/if-nick-name-is-same/1462796/20 "2021-09-02T11:06:29Z")

</div>

boss, close the topic @tatiang or @muneer

[Next page](https://community.thunkable.com/t/if-nick-name-is-same/1462796.md?page=2)
