Open MyPyDavid opened 6 months ago
I think the OR part can already be done with multiple conditions on one element (https://github.com/rdmorganiser/rdmo/blob/main/rdmo/projects/utils.py#L31). The AND part can be complicated to implement.
We also have this need. We have a set of questions which are dependent from a derived variable DIL, defined from the answer to two questions CU and CP as follows:
DIL = if(CU==1)1 else max(CU,CP)
Rationale / Begründung
Conditions are currently targeting only one attribute and are resolved for a single relation. It should be possible to evaluate multiple attributes in one condition each against different target texts/options.
These conditions can be connected via AND or OR.
In the edit Condition interface:
PS it might sound like a ConditionSet but it should be editable as a normal Condition in order to not overflow the UI with complexity.
Affected
Users, Managers
Minimal functionality
Nice-to-have functionality
*
References / Verweise