From cbc31e63271765bdf4ceabaa07817749c8cf96bd Mon Sep 17 00:00:00 2001 From: Tony <43834836+lofoyet@users.noreply.github.com> Date: Tue, 26 Sep 2023 11:12:07 -0700 Subject: [PATCH] update doc index page for an example of numeric comparison (#870) --- docs/docs/FAQ.md | 2 +- docs/docs/index.md | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/docs/FAQ.md b/docs/docs/FAQ.md index 03370930..59db2d0b 100644 --- a/docs/docs/FAQ.md +++ b/docs/docs/FAQ.md @@ -61,7 +61,7 @@ In A/B tests you can set a user meta criteria in field `userMetaCriteria`, this }, "age" : { - "%gt" : 32 //matches age older than 32, other compartor includes %ge, %lt and %le + "%gt" : 32 //matches age older than 32, other compartor includes %ge, %lt and %le, using those 4 comparators implies a numeric field from both User Meta Criteria in Admin UI and clients that pass in meta }, "clientVer": { diff --git a/docs/docs/index.md b/docs/docs/index.md index 86259fc5..c6180fd5 100644 --- a/docs/docs/index.md +++ b/docs/docs/index.md @@ -164,6 +164,10 @@ The following example lists most of the criteria. "city": "LA", "state": "NY" }, + + "age" : { + "%gt" : 32 //matches age older than 32, other compartor includes %ge, %lt and %le, using those 4 comparators implies a numeric field from both User Meta Criteria in Admin UI and clients that pass in meta + }, "clientVer": { "%versionStart" : "1.0.0" //special filter for version strings. Matches users whose "clientVer" is later than "1.0.0"