<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Check empty leaf set in python api in NSO Developer Hub Discussions</title>
    <link>https://community.cisco.com/t5/nso-developer-hub-discussions/check-empty-leaf-set-in-python-api/m-p/4271441#M5989</link>
    <description>The empty leaf can also be passed to the function bool(), so bool(root.my_empty_leaf) will return its truth.&lt;BR /&gt;&lt;BR /&gt;Python will call the bool() function whenever it sees an object that supports it inside an if statement, so you can also just use the leaf directly in an if test&lt;BR /&gt;If root.my_empty_leaf :&lt;BR /&gt;                Do something&lt;BR /&gt;</description>
    <pubDate>Wed, 13 Jan 2021 09:50:09 GMT</pubDate>
    <dc:creator>snovello</dc:creator>
    <dc:date>2021-01-13T09:50:09Z</dc:date>
    <item>
      <title>Check empty leaf set in python api</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/check-empty-leaf-set-in-python-api/m-p/4271062#M5987</link>
      <description>&lt;P&gt;Is there a way to check if an empty list has been set using the python API?&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 19:48:46 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/check-empty-leaf-set-in-python-api/m-p/4271062#M5987</guid>
      <dc:creator>sfloresk</dc:creator>
      <dc:date>2021-01-12T19:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Check empty leaf set in python api</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/check-empty-leaf-set-in-python-api/m-p/4271063#M5988</link>
      <description>&lt;P&gt;It can be done using the exists() method. Will return "True" if has been set, otherwise the result will be "False". (Credits to Viktor Leijon)&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jan 2021 19:49:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/check-empty-leaf-set-in-python-api/m-p/4271063#M5988</guid>
      <dc:creator>sfloresk</dc:creator>
      <dc:date>2021-01-12T19:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Check empty leaf set in python api</title>
      <link>https://community.cisco.com/t5/nso-developer-hub-discussions/check-empty-leaf-set-in-python-api/m-p/4271441#M5989</link>
      <description>The empty leaf can also be passed to the function bool(), so bool(root.my_empty_leaf) will return its truth.&lt;BR /&gt;&lt;BR /&gt;Python will call the bool() function whenever it sees an object that supports it inside an if statement, so you can also just use the leaf directly in an if test&lt;BR /&gt;If root.my_empty_leaf :&lt;BR /&gt;                Do something&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Jan 2021 09:50:09 GMT</pubDate>
      <guid>https://community.cisco.com/t5/nso-developer-hub-discussions/check-empty-leaf-set-in-python-api/m-p/4271441#M5989</guid>
      <dc:creator>snovello</dc:creator>
      <dc:date>2021-01-13T09:50:09Z</dc:date>
    </item>
  </channel>
</rss>

