3. Conditional - rayhan-ferdous/ProvMod GitHub Wiki

In our model, we facilitate if like operation. Multiple if could be created with independent branching that can act like a ladder of multiple if clauses.

For example the ladder, (c = condition, op = operation)

if c1
    op1
if c2
    op2
if c3
    op3

can be implemented with the workflow, (d = data-flow, m = module)

d1 -> m1(c1) -> d2
   -> m2(c2) -> d3
   -> m3(c3) -> d4

In our model, if a certain condition accompanied with a module is False, then it is not executed and returns a None value.

So, if the shown example is only true for the m2(c2) module, then it generates an output like,

d1 -> m1(c1) -> None
   -> m2(c2) -> d3
   -> m3(c3) -> None