-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
42 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
feature-complex-ticket-234234 { | ||
// this is yet another | ||
a = b and c=d and (dd not in (1,2,3) or z == "demo car"): true | ||
|
||
// this is other | ||
z == "demo car": false | ||
|
||
// demo this | ||
g in (4,5,6) and z == "demo car": true | ||
|
||
// demo comment | ||
model in (ms,mx,m3,my) and created >= 2024-01-01 | ||
and demo == false: true | ||
|
||
false | ||
} | ||
|
||
// once you dont have rules you can use short notation to return boolean | ||
feature-flat-on-off -> true | ||
|
||
// you can return non-boolean in this example json | ||
feature-json-variant -> json({success: true}) | ||
|
||
// feature with one rule | ||
// returns true for NL country, else false | ||
feature-y { | ||
countryCode == NL: true | ||
false | ||
} | ||
|
||
// feature with inside commments and works like scheduler | ||
testing { | ||
// NOW actually should be Atom variable without value till its evaluated | ||
NOW() >= 2024-02-18: true // this is basically scheduling something | ||
false | ||
} | ||
|
||
// simple flat on-off flags still can be written as a functions | ||
feature1 { | ||
true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.