LOTUSSCRIPT 言語
構文
expr1 And expr2
要素
expr1、expr2
And 演算子では、FALSE 式の結果はすべて FALSE になります。
' Boolean usage
Dim johnIsHere As Boolean, jimIsHere As Boolean
Dim bothAreHere As Boolean
johnIsHere = TRUE
jimIsHere = FALSE
bothAreHere = johnIsHere And jimIsHere
Print bothAreHere ' Prints 0 (False)
' Bit-wise usage Dim x As Integer, y As Integer x% = &b11110000 y% = &b11001100 Print Bin$(x% And y%) ' Prints 11000000
関連項目