The documentation for Azure Form Recognizer includes example snippets on usage. (Many thanks to @kristapratico, @catalinaperalta, and @maririos for working to add those in #20996 and #29193!)
In those snippets is a pair of if-statements: if kv_pair.key: here and if kv_pair.value here. Is there any chance that either of kv_pair.key or kv_pair.value will come back "falsy" or missing?
If so, is there somewhere in the documentation that could help me understand the usage of key-value pairs that are missing either the key, the value, or both?
(On the other hand, if they'll never be missing, could those conditionals be removed?)
The documentation for Azure Form Recognizer includes example snippets on usage. (Many thanks to @kristapratico, @catalinaperalta, and @maririos for working to add those in #20996 and #29193!)
In those snippets is a pair of if-statements:
if kv_pair.key:here andif kv_pair.valuehere. Is there any chance that either ofkv_pair.keyorkv_pair.valuewill come back "falsy" or missing?If so, is there somewhere in the documentation that could help me understand the usage of key-value pairs that are missing either the key, the value, or both?
(On the other hand, if they'll never be missing, could those conditionals be removed?)