# How do i create conditional logic gates?

**URL:** <https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [September 2, 2022, 11:32am UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926 "2022-09-02T11:32:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![theerapat.phymvo0i](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@theerapat.phymvo0i](https://community.thunkable.com/u/theerapat.phymvo0i)\
**Post date:** [September 2, 2022, 11:32am UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926/1 "2022-09-02T11:32:08Z")

</div>

How do i create an "if block1’s text greater than 0 but less than 10 set block1’s text 5  
It’s probably very easy but i’m new to this web so idk how

---

<div class="post-metadata">

**Author:** ![Dean\_Artis](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@Dean\_Artis](https://community.thunkable.com/u/Dean_Artis)\
**Post date:** [September 2, 2022, 1:02pm UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926/2 "2022-09-02T13:02:37Z")

</div>

> [@theerapat.phymvo0i](#):
>
> i’m new

It’s best to read the docs and look for tutorials on YouTube etc. What you want to do is relatively simple and if you can’t even do that you may have further problems in the future.

---

<div class="post-metadata">

**Author:** ![theerapat.phymvo0i](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@theerapat.phymvo0i](https://community.thunkable.com/u/theerapat.phymvo0i)\
**Post date:** [September 2, 2022, 2:39pm UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926/3 "2022-09-02T14:39:30Z")

</div>

i cant find it

---

<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 2, 2022, 8:47pm UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926/4 "2022-09-02T20:47:09Z")

</div>

You’ll need to use Control blocks and Logic blocks to do this. Also, you can’t compare numerical strings using \< or \>. So first, add zero (+0) to each text string to convert them to numbers and then compare them using \< or \>.

If you can’t get it working, post a screenshot of the blocks you’ve tried.

---

<div class="post-metadata">

**Author:** ![theerapat.phymvo0i](https://avatars.discourse-cdn.com/v4/letter/t/d26b3c/32.png) [@theerapat.phymvo0i](https://community.thunkable.com/u/theerapat.phymvo0i)\
**Post date:** [September 4, 2022, 8:29am UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926/5 "2022-09-04T08:29:29Z")

</div>

Thanks for to reply but i want it to check if the number is between a range  
example: If block1’s text less than 1 but greater than 3 do set block2’s text to “The number is 2”  
else set block2’s text to “The number isn’t 2”

---

<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 4, 2022, 10:57am UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926/6 "2022-09-04T10:57:31Z")

</div>

See these blocks

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

This the result of the test

- If you click the button without entering a number  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/2/92f829a9fa6bf20fcd2ebaec8f878137f2886564.png)

- If you enter 2  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/a/ba79558f4910f8851f5f6daf4f6f570298655847.png)

- If you enter a different number  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/2/3242f0f2915da635d4d0cef285bdca3f9e119c18.png)

Hope this explains what you are trying to do.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [December 3, 2022, 10:57am UTC](https://community.thunkable.com/t/how-do-i-create-conditional-logic-gates/2024926/7 "2022-12-03T10:57:32Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
