tumblr tracker

And (Logical And)

Parent Previous Next

And (Logical And) Operator


Checks whether left side and right side of the operator are both true. Can be used only with boolean data types.



Example


$a = 10;
$b = 1;

If ($a <= 10 And $b == 1)
{
   MessageBox.ShowInfo("$a is less than or equal to ten and $b is one.");
}