IfAny

Returns one of the given sequences depending on whether the condition sequence has any elements.

Syntax

Sequence.IfAny
   ·  [condition]
   ·  [ifAny]
   ·  [ifEmpty]

Parameters

condition
The sequence to check for values.
ifAny
The sequence to return if the condition sequence is not empty.
ifEmpty
The sequence to return if the condition sequence is empty.

Return Value

One of the given sequences.