title: can we restrict the 'defined_value' value inside the if condition in NSIS
body: <p>here I was trying to restrict the 'defined_value' value inside the if condition, But it is working as the global condition
  Can anybody help me out with this issue, how can I restrict the &quot;define_value&quot;</p>
  <pre><code>!include LogicLib.nsh
  Var data
  
  Function .oninit
  
        StrCpy $data &quot;15&quot;
  
  FunctionEnd
  
  Function display
  
          ${If} $data == '20'
                MessageBox MB_OK &quot;test&quot;
                 !define defined_value &quot;50&quot;
          ${EndIf}
          
  FunctionEnd
  
  Section test
  
         Call display
         Detailprint &quot;Updated value : ${defined_value}&quot;
         
  SectionEnd
  </code></pre>