Skip to content

Collections: Get From Dictionary should accept a default value #4398

Description

@Eli-Black-Work

Pop From Dictionary has support for returning a default value if the key isn't found in the dictionary. e.g.

Pop From Dictionary  ${myDict}  myKey  myDefaultValue

I think it'd be great if Get From Dictionary also support having a default value passed to it. 🙂

e.g.

Get From Dictionary  ${myDict}  myKey  myDefaultValue

Activity

  1. pekkaklarck commented on Jul 12, 2022

    @pekkaklarck
    Member

    This is certainly true. Adding the default value would also be pretty easy. Anyone interested to provide a pull request?

  2. added this to the v5.1 milestone on Jul 12, 2022
  3. oboehmer commented on Jul 14, 2022

    @oboehmer
    Contributor

    on it, will raise a PR in a minute..

  4. added a commit that references this issue on Jul 14, 2022
    0497a7e
  5. added
    acknowledge
    on Jul 14, 2022
  6. pekkaklarck commented on Jul 14, 2022

    @pekkaklarck
    Member

    Thanks for the PR @oboehmer!

  7. changed the title [-]Make "Get from dictionary" take a default value[/-] [+]Collections: `Get From Dictionary` should accept a default value[/+] on Jul 14, 2022
  8. Eli-Black-Work commented on Jul 15, 2022

    @Eli-Black-Work
    Author

    Wow, that was quick! 🙂 Thank you ^_^

  9. pekkaklarck commented on Jul 15, 2022

    @pekkaklarck
    Member

    I didn't expect this to make it to RF 5.1 alpha 1 but @oboehmer was very quick with a PR. 😄

  10. Eli-Black-Work commented on Jul 15, 2022

    @Eli-Black-Work
    Author

    Indeed! 😀

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    acknowledgealpha 1good first issuepriority: medium

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions