And |
Top Previous Next |
Prototype
BoolValue:=BoolInput1 And BoolInput2
Description
Returns TRUE if both input value are true.
Parameters
BoolInput1: first input Boolean value.
BoolInput2: second input Boolean value.
Returned value
BoolValue: And result Boolean value.
Notes
None.
Example
// It initializes X and Y integer variable X:=2; Y:=1;
//It calculates And operation BoolOutXX:=(X=X) And (X=X); BoolOutXY:=(X=X) And (X=Y);
//It logs result ApplicationLog('The And between X and X is: '+BooltoStr(BoolOutXX)); ApplicationLog('The And between X and Y is: '+BooltoStr(BoolOutXY));
// It initializes two boolean variables FoundValueX:=True; FoundValueY:=False;
//It calculates And BoolOut:=FoundValueX And FoundValueY;
//It logs result ApplicationLog('AND function result is: '+BooltoStr(BoolOut)); |