You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-5Lines changed: 13 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -240,25 +240,25 @@ This toolkit came into existence for a specific need with which a large enterpri
240
240
241
241
5. It allows a rule expression that can refer to boolean, integer, float, string, set, list, map and other nested tuple attributes. In addition to having many built-in data types inside a collection, it allows list of TUPLE by having user defined custom tuple data types inside a list.
242
242
243
-
6. It allows certain level of subexpression chaining in a rule.
243
+
6. It allows certain level of subexpression chaining i.e. nesting in a rule.
244
244
245
-
a. It supports zero or single or multilevel parenthesis in a given rule.
245
+
a. It supports zero or single-level or multi-level parenthesis in a given rule.
246
246
247
-
b. Via multilevel parenthesis, it allows for evaluating nested rules.
247
+
b. Via multi-level parenthesis, it allows for evaluating nested rules.
248
248
249
249
c. Within a given subexpression, one must use the same logical operators.
250
250
251
251
d. Zero parenthesis is used in this example rule:
252
252
253
253
a == 'hi' && b contains 'xyz' && g[4] > 6.7 && id % 8 == 3
254
254
255
-
e. Singlelevel parenthesis is used within each subexpression in the following example rules:
255
+
e. Single-level parenthesis is used within each subexpression in the following example rules:
256
256
257
257
(a == 'hi') && (b contains 'xyz' || g[4] > 6.7 || id % 8 == 3)
258
258
259
259
(a == "hi") && (b contains "xyz") && (g[4] > 6.7) && (id % 8 == 3)
260
260
261
-
f. Multilevel parenthesis is used in the following example rules that are nested:
261
+
f. Multi-level parenthesis is used in the following example rules that are made of single-level nested subexpressions:
262
262
263
263
(a == "hi") && ((b contains "xyz" || g[4] > 6.7) && id % 8 == 3)
264
264
@@ -272,6 +272,14 @@ This toolkit came into existence for a specific need with which a large enterpri
The complete C++ logic for the **eval_predicate** function is available in the [eval_predicate.h](impl/include/eval_predicate.h) file of this repository.
0 commit comments