Contents

buildEither(first:)

Compares content in a multistatement closure, resulting in use of the conditional content if the first argument you provide evaluates to  true.

Declaration

static func buildEither<TrueContent, FalseContent>(first: TrueContent) -> _ConditionalMapContent<TrueContent, FalseContent> where TrueContent : MapContent, FalseContent : MapContent

Parameters

  • first:

    The content that represents the true content element to compare against.

Return Value

Returns the conditional map content that meets the conditions the content builder expresses.

See Also

Conditionally building map content