From b487c4e9806679ca27b7024b53376c13c7c70681 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fredrik=20H=C3=BCbinette=20=28Hubbe=29?= <hubbe@hubbe.net>
Date: Wed, 1 May 1996 23:44:08 +0200
Subject: [PATCH] logical operators added

Rev: doc/operators/and:1.3
Rev: doc/operators/logical_and:1.1
Rev: doc/operators/logical_or:1.1
Rev: doc/operators/or:1.3
---
 doc/operators/and         |  2 +-
 doc/operators/logical_and | 18 ++++++++++++++++++
 doc/operators/logical_or  | 17 +++++++++++++++++
 doc/operators/or          |  2 +-
 4 files changed, 37 insertions(+), 2 deletions(-)
 create mode 100644 doc/operators/logical_and
 create mode 100644 doc/operators/logical_or

diff --git a/doc/operators/and b/doc/operators/and
index 849eeae0ce..80c4b40c7d 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 0000000000..9232678f5b
--- /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 0000000000..b7ade5bb1c
--- /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 0388fa1318..d04e9c44af 100644
--- a/doc/operators/or
+++ b/doc/operators/or
@@ -21,4 +21,4 @@ KEYWORDS
 	operators
 
 SEE ALSO
-	`&, `^
+	`&, `^, ||
-- 
GitLab