diff --git a/doc/operators/and b/doc/operators/and index 849eeae0ce4920ef6172fb11a6dbf0231ca6cb88..80c4b40c7d919f4379622d8b5fda2759582be958 100644 --- a/doc/operators/and +++ b/doc/operators/and @@ -21,4 +21,4 @@ KEYWORDS operators SEE ALSO - `|, `^ + `|, `^, && diff --git a/doc/operators/logical_and b/doc/operators/logical_and new file mode 100644 index 0000000000000000000000000000000000000000..9232678f5bd976878364d41b8da1483983206ce4 --- /dev/null +++ b/doc/operators/logical_and @@ -0,0 +1,18 @@ +NAME + && - logical and + +SYNTAX + a && b + + +DESCRIPTION + This operator does logical 'and' between expressions. It first + evaluates a and returns zero if a is zero. Otherwise it returns + b. Note that b is not evaluated at all if a returns zero. + + +KEYWORDS + operators + +SEE ALSO + `&, || diff --git a/doc/operators/logical_or b/doc/operators/logical_or new file mode 100644 index 0000000000000000000000000000000000000000..b7ade5bb1c35cea01206a54c12de314a8576de30 --- /dev/null +++ b/doc/operators/logical_or @@ -0,0 +1,17 @@ +NAME + || - logical or + +SYNTAX + a || b + + +DESCRIPTION + This operator does logical 'or' between expressions. It first + evaluates a and returns that if a is non-zero. Otherwise it + returns b. Note that b is not evaluated at all if a is non-zero. + +KEYWORDS + operators + +SEE ALSO + `|, && diff --git a/doc/operators/or b/doc/operators/or index 0388fa1318c20897fea7c9731890aa17d8a9ba0c..d04e9c44afb85d1378ddeafcdd7e88bbaab10fb0 100644 --- a/doc/operators/or +++ b/doc/operators/or @@ -21,4 +21,4 @@ KEYWORDS operators SEE ALSO - `&, `^ + `&, `^, ||