示例:If (条件) 命令

If /Line1::Pump1\Valve1 = 0 Then Display /Line1::PumpWarning Endif
在该示例中,当 Line1::Pump1\Valve1 的值等于零时,将显示来自 Line1 区域的画面 PumpWarning。
If (/Line1::Pump1\Valve1 = 0) && (/Line1::Pump1\Temp>200) Then Display SystemWarning; beep Else Display SystemOK Endif
在该示例中,当 Line1::Pump1\Valve1 的值为零并且温度 ( Temp 的值) 大于 200 时,将显示 SystemWarning 画面,并发出蜂鸣声。如果 Valve1 的值不等于零,或者如果温度小于或等于 200,则将显示 SystemOK 画面。
提供反馈
对本文档有问题或反馈吗? 请在这里提交您的反馈
Normal