Note that there are some explanatory texts on larger screens.

plurals
  1. POPython script couldnt detect mismatch when $instance deleted in only one of the value nvp_add in double if else input statement
    text
    copied!<p>This is continuation question from <em>stackoverflow</em> question below: How do I filter nested cases to be filter out python <a href="https://stackoverflow.com/questions/18325605/how-to-compare-the-attributes-start-with-in-2-functions-and-display-match-or-m/18325700#18325700">How to compare the attributes start with $ in 2 functions and display match or mismatch</a></p> <p>When i delete one of the <code>$apsChanConfigNumber</code> from <code>nvp_add</code> in first block of if, the compare python script from link above couldn't detect the mismatch, there are 2 <code>nvp_add</code> function under this case. How to resolve the issue help!!!</p> <p>Input file ASCII plain text contain text below:</p> <hr> <pre><code> if(exists($snmpTrapEnterprise)) { if(match($OPTION_EnableDetails, "1") or match($OPTION_EnableDetails_juniper, "1")) { details($snmpTrapEnterprise,$apsChanStatusSwitchovers,$apsChanStatusCurrent,$apsChanConfigGroupName,$apsChanConfigNumber) } @ExtendedAttr = nvp_add(@ExtendedAttr, "snmpTrapEnterprise", $snmpTrapEnterprise, "apsChanStatusSwitchovers", $apsChanStatusSwitchovers, "apsChanStatusCurrent", $apsChanStatusCurrent, "apsChanConfigGroupName", , "apsChanConfigNumber",) } else { if(match($OPTION_EnableDetails, "1") or match($OPTION_EnableDetails_juniper, "1")) { details($apsChanStatusSwitchovers,$apsChanStatusCurrent,$apsChanConfigGroupName,$apsChanConfigNumber) } @ExtendedAttr = nvp_add(@ExtendedAttr, "apsChanStatusSwitchovers", $apsChanStatusSwitchovers, "apsChanStatusCurrent", $apsChanStatusCurrent, "apsChanConfigGroupName", $apsChanConfigGroupName, "apsChanConfigNumber", $apsChanConfigNumber) } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload