Skip to content

Should be able to specify if it's OR or AND condition #22

@dstj

Description

@dstj

Digging into the code to understand my issue with #9, I noticed that the IfQueryArg() condition is forced as an "OR" condition:

orConditions = new Dictionary<ConditionGroup, List<IPrecondition>>

I believe there should be an extra optional parameter to (maybe) all conditions to specify if we want it to be an AND or an OR. So

public ISetup IfQueryArg(string argName, string argValue)

would be

public enum ConditionType { Or, And }

public ISetup IfQueryArg(string argName, string argValue, ConditionType conditionType = ConditionType.Or)

This would increase flexibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions