# Better and more consistent IF THEN logic

**URL:** <https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317>\
**Category:** Feature Requests\
**Created:** [March 15, 2021, 10:32pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317 "2021-03-15T22:32:19Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 14, 2021, 9:20pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/21 "2021-10-14T21:20:07Z")

</div>

Yes, sometimes you have to reverse your thought process to build a working IF in glide. It’s fine for very simple logic, but to me the current implementation of IF logic is counterintuitive to how I was taught to write IF statements in code. In some cases it’s harder to build and harder to comprehend because of the weird way we have to structure the logic to work correctly.

If you have a specific case you’re trying to work through, I’d be happy to take a look if you have some screenshots.

---

<div class="post-metadata">

**Author:** ![AyS\_0908](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/ays_0908/32/27349_2.png) [@AyS\_0908](https://community.glideapps.com/u/AyS_0908)\
**Post date:** [October 14, 2021, 9:28pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/22 "2021-10-14T21:28:32Z")

</div>

> [@Jeff\_Hager](#):
>
> It’s fine for very simple logic

Agreed.

> [@Jeff\_Hager](#):
>
> I’d be happy to take a look

Many thanks. At this stage it works ok when reversing the approach, but I’m happy to have double-checked the ““logic”” with you before entering in more advanced use cases (which will require to have several IF from IF columns…).

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 15, 2021, 12:25am UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/23 "2021-10-15T00:25:06Z")

</div>

> [@Jeff\_Hager](#):
>
> Yes, sometimes you have to reverse your thought process to build a working IF in glide. It’s fine for very simple logic, but to me the current implementation of IF logic is counterintuitive to how I was taught to write IF statements in code. In some cases it’s harder to build and harder to comprehend because of the weird way we have to structure the logic to work correctly.

you know… I think I’ve used it so much now that I’ve almost started to think in Glide if-then-else terms 🤣

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [October 15, 2021, 1:53am UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/24 "2021-10-15T01:53:56Z")

</div>

I know. I think we are being brainwashed. 😉

…then I have to go to my day job and reverse that thinking again…

---

<div class="post-metadata">

**Author:** ![David\_Gabler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_gabler/32/44332_2.png) [@David\_Gabler](https://community.glideapps.com/u/David_Gabler)\
**Post date:** [February 22, 2022, 8:27pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/25 "2022-02-22T20:27:30Z")

</div>

I just stumbled upon this thread. I started using Glide about a month after this last post. In the last four months, the thing that has bothered me the most is the lack of consistency, and unavailability of true conditional logic, and the hoops we have to jump through in custom actions (at least give us “copy node”) to complete multiple chains of possibilities that produce ALMOST the same action. Then, of course, re-use custom actions and custom forms.

I _do_ see Glide moving forward in some areas, but as you said, never looking back to building up core functions that feel “left undone”, and that I have seen multiple other threads asking for.

That said, I shall continue plodding on with Glide hoping they’ll pick up some of these loose threads and start looking at the things their core users are after. Work-arounds are just that, “working around” issues that need to be addressed by Glide.

---

<div class="post-metadata">

**Author:** ![David\_Gabler](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/david_gabler/32/44332_2.png) [@David\_Gabler](https://community.glideapps.com/u/David_Gabler)\
**Post date:** [May 24, 2022, 2:06am UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/26 "2022-05-24T02:06:42Z")

</div>

> [@Jeff\_Hager](#):
>
> Custom actions handles it the best out of all three, still could be expanded to allow for combined AND/OR logic in the same condition check.

@Robert_Petitto and @Yasin_Hassanien – see, it does include what we’ve asked for! Let’s all vote for this.

---

<div class="post-metadata">

**Author:** ![Yasin\_Hassanien](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yasin_hassanien/32/9042_2.png) [@Yasin\_Hassanien](https://community.glideapps.com/u/Yasin_Hassanien)\
**Post date:** [May 24, 2022, 9:32am UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/27 "2022-05-24T09:32:55Z")

</div>

Voted

---

<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:** [May 24, 2022, 1:11pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/28 "2022-05-24T13:11:03Z")

</div>

Ya…I was thinking of something like this:

> [@Action Editor \> Connect/Add branching actions and conditions](https://community.glideapps.com/t/action-editor-connect-add-branching-actions-and-conditions/24544):
>
> The action editor is the most powerful feature of glide. It’s one limitation is that conditions are only allowed at the root level. Would love the feature to check one condition, make one change (like an increment or set column) and then continue the workflow/path contained in a separate condition. Kind of hard to explain in words. Watch the video below to see what I mean. Image uploaded by @Lucas_Pires@tristan @jason

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [May 24, 2022, 4:20pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/29 "2022-05-24T16:20:16Z")

</div>

Welcome to Glide where you can spend way too much time on things that would seem really simple!

Keep up the great work though!

---

<div class="post-metadata">

**Author:** ![Golden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/golden/32/45026_2.png) [@Golden](https://community.glideapps.com/u/Golden)\
**Post date:** [January 9, 2023, 3:47pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/30 "2023-01-09T15:47:03Z")

</div>

Big time.

An “elseif” in custom actions builder would save me TONS of headache.

Plz Glide \<3

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 9, 2023, 3:55pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/31 "2023-01-09T15:55:38Z")

</div>

Do you have a specific case that’s giving you a particularly bad headache?

Maybe we can help. Although the if-then-else column might seem very restrictive, it’s sometimes surprising what you can do with a little creativity and and bit of “backwards thinking” 😉

---

<div class="post-metadata">

**Author:** ![Golden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/golden/32/45026_2.png) [@Golden](https://community.glideapps.com/u/Golden)\
**Post date:** [January 9, 2023, 4:24pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/32 "2023-01-09T16:24:27Z")

</div>

Hi again Darren 🙂

Here’s my specific use case. Here’s what I want to do:

WHEN orders are marked as “paid” THEN:

1. IF user pays with credits THEN create a row in Credit History with reduction of credits.
2. AND/OR IF users has membership (e.g. get $10 credits per order) THEN create a row in Credit History with +$10 credits.
3. AND/OR IF users pay less than the order total THEN add order debt to Credit History.

I have the first 2 worked out in custom actions using 4 IF statements (see img)

I realized that doing the 3rd statement IF AND/OR will require me to do a total of 9 IF statements in custom actions (I think). Since they all need to be unique conditions (3 x 3).

 ![Screenshot 2023-01-09 at 11.20.57 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/2/b/2ba0b9f76792afe150c65e675187188d9673d376.jpeg)

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 9, 2023, 4:32pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/33 "2023-01-09T16:32:54Z")

</div>

> [@Golden](#):
>
> - IF user pays with credits THEN create a row in Credit History with reduction of credits.
> - AND/OR IF users has membership (e.g. get $10 credits per order) THEN create a row in Credit History with +$10 credits.

hmm, couldn’t you combine these two into a single step by pre-calculating the membership credit in the data editor?

I’m thinking an if-then-else column something like:

- If user is member, then 10
- Else 0

And then use the output of that if-then-else column in your Add Row action.

Would that make sense?

---

<div class="post-metadata">

**Author:** ![Golden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/golden/32/45026_2.png) [@Golden](https://community.glideapps.com/u/Golden)\
**Post date:** [January 9, 2023, 4:44pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/34 "2023-01-09T16:44:32Z")

</div>

Thanks for the reply Darren. I’m currently getting the right values.

The “problem” is that I want to create 0, 1, 2 or 3 rows based on 3 conditions on one button click. Each row recording a distinct credit history transaction for the Who/When/What for:

1. Customers using credits
2. Customers accruing credits
3. Customers accruing debt

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [January 9, 2023, 5:07pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/35 "2023-01-09T17:07:17Z")

</div>

Ah, okay.

Yeah, this seems like a case where you could use some extra branching options in the action editor.

Well, good news might be on the horizon. I know that Glide have big plans for the action editor this year. So I’d say watch this space 🙂

---

<div class="post-metadata">

**Author:** ![Golden](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/golden/32/45026_2.png) [@Golden](https://community.glideapps.com/u/Golden)\
**Post date:** [January 9, 2023, 6:05pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/36 "2023-01-09T18:05:57Z")

</div>

Thanks for your reply Darren, much appreciated! Looking forward to seeing what Glide comes up with!!

---

<div class="post-metadata">

**Author:** ![Airon\_Studio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/airon_studio/32/55919_2.png) [@Airon\_Studio](https://community.glideapps.com/u/Airon_Studio)\
**Post date:** [August 11, 2023, 12:55pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/37 "2023-08-11T12:55:33Z")

</div>

This was requested was opened 2 AND A HALF YEARS AGO, and still no response/update from glide.

I love glide and the potential of it, but the speed of which they update (don’t update) feature requests is a big problem.

I feel like all they focus on now days is AI AI AI AI. Seriously, enough with the AI. Every YouTube video they put out, I’m looking forward to a new design feature/component update but NOTHING. It’s always another garbage AI video that most people aren’t interested in. Cool, you incorporated AI, but PLEASE for the love of G-d, listen to what the users need and not what the VC’s and investors think users want. @glide, go through the feature requests and count how many topics are about AI. I’ll spare you the time, it’s pretty much 0!!!

We as users need you to focus on core basic functionality and we love to see new components and design features that enable us to create apps and software in an easier more efficient manner and to be able to make them look more pretty and to constantly push the capabilities of glide further and further!

Take flutter flow for example. Even though I don’t like them so much, they are busting out loads of features that users request on a consistent bases. Every month they release a new video with about 10 new features they updated that month. We need this kind of stuff at glide. Now I know that they are owned by google so they probably have more funding than you, but at least we as glide users need to get the feeling that something is being done about the pace in which you guys release/update features. At this rate, we are getting a measly couple features A YEAR.

Just a little rant here, I still love you Glide and keep using you, but damn it’s getting frustrating.

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [August 11, 2023, 7:32pm UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/38 "2023-08-11T19:32:38Z")

</div>

You know, software companies have hundreds if not thousands of new features they could develop. They need to choose, prioritize, rule out… based on things such as impact, effort, cost, alignment with vision, etc.

This feature might be important. But other features might have higher priority. It so happens that AI is a big deal. It might not be a big deal to you, and that’s fine, but businesses that don’t get onboard the AI train could (will?) be at a serious competitive disadvantage. The team behind Glide has a serious track record of being successful in the software space. This doesn’t guarantee success, but I would wager that if they are putting so much emphasis on some aspects and less on others, there’s a good reason for it.

I agree with you, ‘and’ and ‘or’ operators could be helpful in the if-then-else computed column. I know they would help me. Though as Darren has mentioned, with creativity you can often do without.

My apologies if it seems I’ve stated the obvious.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [August 12, 2023, 5:01am UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/39 "2023-08-12T05:01:33Z")

</div>

> [@Airon\_Studio](#):
>
> At this rate, we are getting a measly couple features A YEAR.

mmm, depends on how you define “a couple”.  
Let’s take a quick look at what we’ve gotten [this year](https://www.glideapps.com/product/updates):

January

- CSV Import into Glide Tables
- Improved Action Editor with Recent Runs logging

February

- BigQuery support
- Glide Big Tables (Beta)

March

- Custom Button Options
- Additional Button Icon library
- New Button Styles
- Save Layout Preview Mode
- Refreshed “More Menu” button
- Show Check Marks in Fields Component
- New Radio style for Choice Component
- Show Home Screen Popup for easier Installation
- Audio Component
- Progress Bar Component
- Rating Component
- Checkbox Component
- Signature Component
- Contact Component
- Action Row Component
- Link Component
- Location Component
- Checklist Collection
- Glide Actions V2
- iOS Push Notifications

April

- Horizontal View for Card & Grid Collections

May

- New Title Styles
- Glide Big Tables (GA)

June

- Actions & Integrations
- Multiple Filters for Collection Components
- Branded Sign In

July

- Comments Component
- Notes Component
- Multi-Image Picker & Multi-File Upload
- SSO (Beta)
- Image Carousel

And just in the past couple of weeks, we’ve had:

- New Glide AI columns
- Enhanced JSON handling columns
- New [Glide University](https://learn.glideapps.com) launched
- Updated [Glide Docs](https://www.glideapps.com/docs) launched
- Call API action/column

And that’s just a list of the features that are considered significant enough to make it to the [Updates Page](https://www.glideapps.com/product/updates).

If that represents development and release of features at a snails pace, then I shudder to think what it will be like once they step up a gear 🙂

---

<div class="post-metadata">

**Author:** ![erwblo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/erwblo/32/75_2.png) [@erwblo](https://community.glideapps.com/u/erwblo)\
**Post date:** [August 13, 2023, 8:29am UTC](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317/40 "2023-08-13T08:29:03Z")

</div>

Flutterflow & AI:

> **[Build Your App With The Power of AI | FlutterFlow AI Gen](https://flutterflow.io/ai-gen)**
>
> Generate code, styles & database schema with the power of AI in FlutterFlow. Now available to all users, an AI assistant for every step of your app development journey.

[Previous page](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317.md?page=1)

[Next page](https://community.glideapps.com/t/better-and-more-consistent-if-then-logic/24317.md?page=3)
