commit
message
Formulas.FALSE written and tested.
author
Ben Vogt <[email protected]>
date
2017-02-05 22:45:34
stats
2 file(s) changed,
11 insertions(+),
1 deletions(-)
files
src/RawFormulas/Logical.ts
src/RawFormulas/RawFormulas.ts
1diff --git a/src/RawFormulas/Logical.ts b/src/RawFormulas/Logical.ts
2index c135483..7814695 100644
3--- a/src/RawFormulas/Logical.ts
4+++ b/src/RawFormulas/Logical.ts
5@@ -62,6 +62,15 @@ var TRUE = function () : boolean {
6 return true;
7 };
8
9+/**
10+ * Returns false.
11+ * @returns {boolean} false boolean
12+ * @constructor
13+ */
14+var FALSE = function () : boolean {
15+ return false;
16+};
17+
18 /**
19 * Returns the opposite of a logical value - NOT(TRUE) returns FALSE; NOT(FALSE) returns TRUE.
20 * @param values[0] An expression or reference to a cell holding an expression that represents some logical value.
21@@ -119,6 +128,7 @@ export {
22 AND,
23 EXACT,
24 TRUE,
25+ FALSE,
26 NOT,
27 OR
28 }
29\ No newline at end of file
30diff --git a/src/RawFormulas/RawFormulas.ts b/src/RawFormulas/RawFormulas.ts
31index 3083261..846e7f3 100644
32--- a/src/RawFormulas/RawFormulas.ts
33+++ b/src/RawFormulas/RawFormulas.ts
34@@ -46,6 +46,7 @@ import {
35 AND,
36 EXACT,
37 TRUE,
38+ FALSE,
39 NOT,
40 OR
41 } from "./Logical";
42@@ -133,7 +134,6 @@ var EOMONTH = function (start_date, months) {
43 var ERF = Formula["ERF"];
44 var ERFC = Formula["ERFC"];
45 var EXPONDIST = Formula["EXPONDIST"];
46-var FALSE = Formula["FALSE"];
47 var __COMPLEX = {
48 "F.DIST": Formula["FDIST"],
49 "F.INV": Formula["FINV"]