How To Write If Condition In Lambda Function