Parameter field conditions
Condition ::= equalityExpression
| compoundExpression
;
equalityExpression ::= "[" ParamName "," primitive "]"
;
compoundExpression ::= "[" ("$and" | "$or")
"," "[" Condition "," Condition { "," Condition } "]"
"]"
;
Example
type Params struct {
SomeModeParam SomeMode
SomeOtherParam int
SomeDependentParam string `{"Condition": ["SomeModeParam", "mode1"]}`
SomeANDDependentParam string `{"Condition": ["$and", [["SomeModeParam", "mode1"], ["SomeOtherParam", 1]]]}`
SomeORDependentParam string `{"Condition": ["$or", [["SomeModeParam", "mode1"], ["SomeOtherParam", 1]]]}`
}Last updated