Lambda Function With Multiple Arguments Using If Statements For Loops