本帖最后由 shenmin32 于 2014-4-23 16:07 编辑
我觉得应该是:
macro_command main()
bool X1,X2,Y0
GetData(X1, "Mitsubishi FX0s/FX0n/FX1s/FX1n/FX2", X ,1, 1)
GetData(X2, "Mitsubishi FX0s/FX0n/FX1s/FX1n/FX2", X, 2, 1)
if X1==true and X2==true then
Y0=true
else
Y0=false
SetData(Y0, "Mitsubishi FX0s/FX0n/FX1s/FX1n/FX2",Y ,0, 1)
end if
end macro_command
另外 我觉得4楼也对 就是结尾必须有3个 end if |