---
title: MTLCompareFunction.less
framework: metal
role: symbol
role_heading: Case
path: metal/mtlcomparefunction/less
---

# MTLCompareFunction.less

A new value passes the comparison test if it is less than the existing value.

## Declaration

```swift
case less
```

## See Also

### Compare function options

- [MTLCompareFunction.never](metal/mtlcomparefunction/never.md)
- [MTLCompareFunction.equal](metal/mtlcomparefunction/equal.md)
- [MTLCompareFunction.lessEqual](metal/mtlcomparefunction/lessequal.md)
- [MTLCompareFunction.greater](metal/mtlcomparefunction/greater.md)
- [MTLCompareFunction.notEqual](metal/mtlcomparefunction/notequal.md)
- [MTLCompareFunction.greaterEqual](metal/mtlcomparefunction/greaterequal.md)
- [MTLCompareFunction.always](metal/mtlcomparefunction/always.md)
