这个程序该怎么理解,这个是先运行if语句再运行for循环语句吗?
GetData(name[0], "Local HMI", LW, 10, 7) // get name strings
for i=0 to 500 step 1
GetData(temp[0], "Local HMI", RW, var+13, 7)
if name[0]==temp[0] and name[1]==temp[1] and name[2]==temp[2] and name[3]==temp[3] and name[4]==temp[4] and name[5]==temp[5] and name[6]==temp[6] then
SetData(var, "Local HMI", LW, 9200, 1)
i=501
else
var=var+20
end if
next i
SetData(OFF, "Local HMI", LB, 7, 1)