# Question about creating a library app

**URL:** <https://community.thunkable.com/t/question-about-creating-a-library-app/885036>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [October 8, 2020, 5:03pm UTC](https://community.thunkable.com/t/question-about-creating-a-library-app/885036 "2020-10-08T17:03:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![scout.delsfxqeni](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@scout.delsfxqeni](https://community.thunkable.com/u/scout.delsfxqeni)\
**Post date:** [October 8, 2020, 5:03pm UTC](https://community.thunkable.com/t/question-about-creating-a-library-app/885036/1 "2020-10-08T17:03:47Z")

</div>

I’m making a borrow system,  
I got a text and when i click “borrow”

1. set the virable “ifBorrow” to “true”
2. call “check name and number function”  
(i also have giveBack button, so check name and number not only for borrow)
3. in the function, if the name is empty, then alert errorA
4. in the function, else if the number is less then 1, alert errorB
5. in the function, else if the number we want to borrow more then we have, alere errorC

I try as following but something wrong :  
if i didn’ select name, alere errorA -\> it’s correct  
else if i input 0, alert errorB -\> it’s correct

then something happaned, now i set the number we have is 2  
when i input 3 to the text  
the system will alert errorB, then i click the button again without change anything,  
the system alert errorC, always the second time,  
but when i change the input to 0,  
the system alert errorB again at the frist time,

then i make a new alert to check the input,  
the first time whe i input 3, the check alert show the input is 3,  
but the system still alert errorB, and the second time will be correct alert errorC

i don’t know what happened…

---

<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:** [October 8, 2020, 5:53pm UTC](https://community.thunkable.com/t/question-about-creating-a-library-app/885036/2 "2020-10-08T17:53:45Z")

</div>

Can you post a screenshot of your blocks? I’m finding it hard to visualize everything just from a written description.

---

<div class="post-metadata">

**Author:** ![scout.delsfxqeni](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@scout.delsfxqeni](https://community.thunkable.com/u/scout.delsfxqeni)\
**Post date:** [October 8, 2020, 6:19pm UTC](https://community.thunkable.com/t/question-about-creating-a-library-app/885036/3 "2020-10-08T18:19:49Z")

</div>

![未命名](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/5/65bf67cab9cb3b7d645d26fc4c3d490bd743fe2d.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:22pm UTC](https://community.thunkable.com/t/question-about-creating-a-library-app/885036/4 "2024-11-08T12:22:13Z")

</div>


