title: Combination of 2 commands in TCL
body: <p>Here are the results of some TCL commands.</p>
  
  <pre><code>get_props -type assert
  {"a", "b", "c", "d"}
  </code></pre>
  
  <p>Now all these 4 objects have certain attributes associated with them. But I am interested in the "enabled" attribute only. </p>
  
  <pre><code>get_attribute [get_props a] enabled
  true
  
  get_attribute [get_props b] enabled
  false
  
  get_attribute [get_props c] enabled
  true
  
  get_attribute [get_props d] enabled
  false
  </code></pre>
  
  <p>Now I want to convert only "enabled" objects (enabled = true) out of these 4 "assert" type objects into "cover" type objects (So only "a" &amp; "c" should be converted) and for converting "assert" into "cover", the command is fvcover.</p>
  
  <p>I have tried the following command:</p>
  
  <pre><code>fvcover [get_props -type assert]
  </code></pre>
  
  <p>Now the problem is that, this fvcover command converts all 4 "assert" type objects into "cover" type objects, instead of just "a" &amp; "c".</p>
  
  <p>So I guess, I need to combine both get_props &amp; get_attributes command, but I don't know how to do it.</p>
  
  <p>So how to solve this problem?</p>
  
  <p><strong>Note :- "a", "b", "c", "d" are just for explanation. In reality, get_props command may return any number of results with any name. But out of that list, I need to convert, only those objects, whose "enabled" attribute is true.</strong> </p>