Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Map Range Values Block #161

Closed
josvanroosmalen opened this issue Apr 2, 2020 · 4 comments
Closed

Create a Map Range Values Block #161

josvanroosmalen opened this issue Apr 2, 2020 · 4 comments
Assignees
Milestone

Comments

@josvanroosmalen
Copy link
Collaborator

For the POC we need to create a map range block the output depend on a certain range. Solution:

<from>;<to>;<value>

If the input value is between <from> and <to> we output <value>.

For the POC they also want to add if range = [x...y] then output the input value. This will be done by supporting #INPUT# as <value>

@josvanroosmalen josvanroosmalen added the enhancement New feature or request label Apr 2, 2020
@josvanroosmalen josvanroosmalen added this to the 1.0.1 milestone Apr 2, 2020
@josvanroosmalen josvanroosmalen self-assigned this Apr 2, 2020
@danielholgate
Copy link
Contributor

Jos, will you make this a user defined block since it's specific to the POC?
Probably better we start to do this to prevent block-bloat - for blocks that prove to be useful for other situations/customers we will review and bring them into the core library

@josvanroosmalen
Copy link
Collaborator Author

I will do all changes in the new poc1 branch. Until #161 is available.

@sashamitrovich sashamitrovich reopened this Apr 2, 2020
danielholgate added a commit that referenced this issue Apr 6, 2020
fixed some bugs which occurred during merge
@sashamitrovich
Copy link
Contributor

How about if we want string values on the output and not numbers?

sashamitrovich added a commit that referenced this issue Apr 14, 2020
@sashamitrovich
Copy link
Contributor

Added test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants