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.
- requests = x (numeric value);
- tabela_precing = {"Plan A": 2500, "Plan B": 5000, "Plan C": 10000, "Plan D": 50000};
- Desired outputs:
- if requests = 500 the output should be "Plan A";
- if requests = 2500 the output should be "Plan A";
- if requests = 2501 the output should be "Plan B";
- if requests = 3340 the output should be "Plan B";
- if requests = 5000 the output should be "Plan B";
- if requests = 5001 the output should be "Plan C";
- 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,