0

The code which need to be executed when Button is clicked. It is being executed twice. when I use "if(this == 1)" I am having an error "Operand types are incompatible"

on sysvar_update sysvar::NexteerData::WriteRead
{
      seclevel = 1;
      ExtendedSession.SendRequest();
      toggle2 = 1;
      Write("Write CALIBRATION VALUES");
}

1 Answers1

-1

When using the value of the system variable in an if statement, use as follows:

if(@this == 1)

This will solve your error and also the double execution issue.

Shyam
  • 649
  • 1
  • 5
  • 20