Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 479 Bytes

File metadata and controls

18 lines (15 loc) · 479 Bytes

If sample

Illustrates how to implement an If decision within your workflow.

builder
    .StartWith<SayHello>()
    .If(data => data.Counter < 3).Do(then => then
        .StartWith<PrintMessage>()
            .Input(step => step.Message, data => "Value is less than 3")
    )
    .If(data => data.Counter < 5).Do(then => then
        .StartWith<PrintMessage>()
            .Input(step => step.Message, data => "Value is less than 5")
    )
    .Then<SayGoodbye>();