Learn how to apply conditional logic in your aggregation queries using the $cond operator and various expressions.