JP1 Version 8 JP1/Script(UNIX(R)用)
論理和(Or)(二つの式の論理和を求める)
機能
二つの式の論理和を求めます。
形式
Result = Expression1 Or Expression2
指定項目
Result
結果を受け取る変数名を指定します。
Expression1
真(True),または偽(False)を評価する任意の式を指定します。
Expression2
真(True),または偽(False)を評価する任意の式を指定します。
説明
二つの式の論理和を求めます。
演算結果Resultの値は次のようになります。
| Expression1 | Expression2 | Result |
|---|---|---|
| True | True | True |
| True | False | True |
| False | True | True |
| False | False | False |
| 文字列 | True | True |
| 文字列 | False | True |
| 文字列 | 文字列 | True |
| Empty値 | True | True |
| Empty値 | False | False |
| Empty値 | Empty値 | False |
例
' 変数Number1の値が7以下,または20以上の場合,メッセージを表示する。
Number1 = Hour ( )
If Number1 <= 7 Or 20 <= Number1 Then
Message( Target_DispOn, "実行結果", "OK" )
End If
All Rights Reserved. Copyright (C) 2003, 2006, Hitachi, Ltd.