Safe dictionary access #40
Unanswered
eschenfeldt
asked this question in
DataFlows & Modules
Replies: 1 comment 2 replies
-
|
I guess you could do a named dictionary splitter and iterate over the keys, but that seems both less efficient and less clear. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to get a value from a dictionary that may or may not contain the key you're looking for without throwing (and suppressing) an exception if the key isn't present?
If you have some optional behavior you want to do if a key is present it seems like the most straightforward way to do that is just DataBinder Eval with continue on error set, but that seems really ugly.
Beta Was this translation helpful? Give feedback.
All reactions