title: CAPL - When Button is clicked - program is executed twice
body: <p>The code which need to be executed when Button is clicked. It is being executed twice.
  when I use &quot;if(this == 1)&quot; I am having an error &quot;Operand types are incompatible&quot;</p>
  <pre><code>on sysvar_update sysvar::NexteerData::WriteRead
  {
        seclevel = 1;
        ExtendedSession.SendRequest();
        toggle2 = 1;
        Write(&quot;Write CALIBRATION VALUES&quot;);
  }
  </code></pre>