Skip to content
Tim Bourguignon edited this page Mar 9, 2014 · 2 revisions

The Or(.Or...Then).Then structure can be used to define an Or clause. The Or applies to the member directly before it and Then is used to close the second part of the Or clause.

var result = se
    .Numbers
    .Maybe(" ")
        .One("€")
    .Or
        .Text("EURO")
    .Then
    .Generate();

Inside an Or block you can of course also group elements.

Clone this wiki locally