> For the complete documentation index, see [llms.txt](https://trizen.gitbook.io/sidef-lang/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://trizen.gitbook.io/sidef-lang/programming_tasks/i/integer_comparison.md).

# Integer comparison

```ruby
var a = read("a: ", Number)
var b = read("b: ", Number)
 
if (a < b) {
    say 'Lower'
}
elsif (a == b) {
    say 'Equal'
}
elsif (a > b) {
    say 'Greater'
}
```

#### Output:

```
% sidef numcmp.sf
a: 21
b: 42
Lower
```
