Lambda Function With If Else Statement