Working with ranged values Zoho Deluge

Working with ranged values Zoho Deluge

Dear community,

I'm creating this thread because I need help to archive the following:

I have a system that must receive the numeric value "requests" and based on this value, it must give me the output telling me on which plan this number of requests will be inserted.

  1. requests = x (numeric value);
  2. tabela_precing = {"Plan A": 2500, "Plan B": 5000, "Plan C": 10000, "Plan D": 50000};

  3. Desired outputs:

  4. if requests = 500 the output should be "Plan A";
  5. if requests = 2500 the output should be "Plan A";
  6. if requests = 2501 the output should be "Plan B";
  7. if requests = 3340 the output should be "Plan B";
  8. if requests = 5000 the output should be "Plan B";
  9. if requests = 5001 the output should be "Plan C";
  10. if requests = 8451 the output should be "Plan C";
I know the syntax isn't correct, I just need to know how can I get this done.

I've tried using map estructures + "for each" and yet I didn't succeed.

Could someone help me, please?

Kind regards,

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now