Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
单击 Button 时需要执行的代码。它正在执行两次。当我使用“if(this == 1)”时出现错误“操作数类型不兼容”
on sysvar_update sysvar::NexteerData::WriteRead { seclevel = 1; ExtendedSession.SendRequest(); toggle2 = 1; Write("Write CALIBRATION VALUES"); }
在 if 语句中使用系统变量的值时,使用如下:
if(@this == 1)
这将解决您的错误以及双重执行问题。