tumblr tracker

Or (Logical Or)

Parent Previous Next

Or (Logical Or) Operator


Checks whether left side or right side of the operator is true. Can be used only with boolean data types.



Example


$a = 10;
$b = 0;

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