////
/// @group tools
////

/// Syntactic sugar around Sass' built-in `if` function that does not require
/// you to pass a value for `$if-false`.
///
/// @param {Boolean} $condition - Whether to return the value of `$if-true`
/// @param {Mixed} $if-true - Value to return if `$condition` is truthy
/// @return {Mixed} Value of `$if-true` if `$condition` is truthy, else null
/// @access public

@function iff($condition, $if-true) {
  @return if($condition, $if-true, null);
}