# Dynamic Increment

**URL:** <https://community.glideapps.com/t/dynamic-increment/25490>\
**Category:** Ask for Help\
**Created:** [April 12, 2021, 10:35pm UTC](https://community.glideapps.com/t/dynamic-increment/25490 "2021-04-12T22:35:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 12, 2021, 10:35pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/1 "2021-04-12T22:35:43Z")

</div>

Good night.  
I want to use the “Is Favorited?” on my app to increase or decrease.  
I tried using the “Creating Action”, but nothing is happening.  
How could I approach this?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 12, 2021, 10:46pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/2 "2021-04-12T22:46:14Z")

</div>

Are you trying to get the total number of times an item has been favorited?

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 12, 2021, 11:11pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/3 "2021-04-12T23:11:05Z")

</div>

Hi @Robert_Petitto.  
Thanks for the reply.  
I’m trying to use just the “true” or “False” values.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 12, 2021, 11:15pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/4 "2021-04-12T23:15:06Z")

</div>

Can you describe more about your use case here? Do you want to create an action on top of the user favoriting an item?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [April 12, 2021, 11:23pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/5 "2021-04-12T23:23:25Z")

</div>

You’ll want to use a conditional “create action”. If it’s `false` \> set column to `true`. If `true` \> set column to `false`

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 12, 2021, 11:25pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/6 "2021-04-12T23:25:19Z")

</div>

How it would work

- User “Favorite” an item, the value would be “true”.
- When the user had favorited to be true, It would increase +1.

If the User used again, the value would be false.

- Then it would decrease -1.

Since i couldn’t do that by Glide Tables, i found the “Create Action”.  
So i tried using it, but with no response.

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 12, 2021, 11:34pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/7 "2021-04-12T23:34:21Z")

</div>

Do you have a photo of the settting?  
No luck setting it up here.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 12, 2021, 11:50pm UTC](https://community.glideapps.com/t/dynamic-increment/25490/8 "2021-04-12T23:50:22Z")

</div>

What is the +1 or -1 column for in this case?

The “isFavorited” column already stores your true or false value.

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 13, 2021, 12:02am UTC](https://community.glideapps.com/t/dynamic-increment/25490/9 "2021-04-13T00:02:46Z")

</div>

LIke the images below.!

1. Favorite Button and Action (IncrementIt) :  
 ![image1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/1/a1b25e3265eb7c2a4b5d592adc34cdf1c6250464.png)

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 13, 2021, 12:04am UTC](https://community.glideapps.com/t/dynamic-increment/25490/10 "2021-04-13T00:04:44Z")

</div>

1. Action of “IncrementIt” :  
 ![image2](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/e/2/e21c3699a8bc991c8b5d9befb3d30f7e2f18bb35.png)

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 13, 2021, 12:05am UTC](https://community.glideapps.com/t/dynamic-increment/25490/11 "2021-04-13T00:05:15Z")

</div>

3)Glide Table settings :  
 ![image3](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/b/a/bacb05c4f9849fd98954206ad5016b6b8e05e3fa.png)

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 13, 2021, 12:07am UTC](https://community.glideapps.com/t/dynamic-increment/25490/12 "2021-04-13T00:07:14Z")

</div>

When i click on the favorite button, its stores the checked value but does not increase the value.  
If i click on the option, not the favorite button, its increase or decrease the value.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 13, 2021, 12:11am UTC](https://community.glideapps.com/t/dynamic-increment/25490/13 "2021-04-13T00:11:35Z")

</div>

The favorite button does not have an action tied with it, as far as I aware. What do you use the VisibleIncrement column for?

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 13, 2021, 12:15am UTC](https://community.glideapps.com/t/dynamic-increment/25490/14 "2021-04-13T00:15:49Z")

</div>

I use it to store the values “1” 0r “0”.

- 1 is fof “true” value.
- 0 is for “false” value.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 13, 2021, 12:21am UTC](https://community.glideapps.com/t/dynamic-increment/25490/15 "2021-04-13T00:21:41Z")

</div>

Then you can just use an if then else column, if true then 1, false then 0.

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 13, 2021, 1:28am UTC](https://community.glideapps.com/t/dynamic-increment/25490/16 "2021-04-13T01:28:01Z")

</div>

How I set this?

What i trisd:

- I have a collumn for the Favorite Button, “Is Favorited”;
- Then a collumn that reads it, true or false, using a if statement;

But the “Action” does not work. Just works if i click the option instead of the “Favorite Button”.

![image4](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/a/3a00a37010370bc781e7a9619bc900ac24190a85.png)

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 13, 2021, 1:34am UTC](https://community.glideapps.com/t/dynamic-increment/25490/17 "2021-04-13T01:34:16Z")

</div>

![image5](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/0/301bf19b08449b7388acb6440f6d16d7e458391d.png)

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 13, 2021, 2:34am UTC](https://community.glideapps.com/t/dynamic-increment/25490/18 "2021-04-13T02:34:31Z")

</div>

I mean if you just need a 0/1 value then use an If Then Else column on top of the isFavorited column, you won’t need an action for that. Basically it looks like you’re trying to convert the false/true text value to the 0/1 version.

---

<div class="post-metadata">

**Author:** ![Augusto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/augusto/32/25004_2.png) [@Augusto](https://community.glideapps.com/u/Augusto)\
**Post date:** [April 14, 2021, 2:23am UTC](https://community.glideapps.com/t/dynamic-increment/25490/19 "2021-04-14T02:23:39Z")

</div>

Hi @ThinhDinh . Thanks for the reply.  
I need the action to convert to 0/1 values 'cause it uses a glide table link.

- I use the same table in another app;
- One app is for clientes;
- The other, that has the increment action, is for admin only.  
Any sugestions how could use this?, or do i have to put it together in one app only?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 14, 2021, 2:27am UTC](https://community.glideapps.com/t/dynamic-increment/25490/20 "2021-04-14T02:27:41Z")

</div>

It doesn’t matter if you use a Glide Table or a Sheet, the If Then Else column is a Glide computed column and will always stay in Glide. You don’t need an increment action here if your sole purpose is to convert the false/true value into 0/1, you just need the ITE column as I suggested above.

[Next page](https://community.glideapps.com/t/dynamic-increment/25490.md?page=2)
