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