aboutsummaryrefslogtreecommitdiff
path: root/assets/manual/man/man3advtrains/speed_lessp.3advtrains.md
blob: af1319f167aa27b89d06261b900c2eea783f3d5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---
title: 'speed_lessp(3advtrains)'
manual: 'Advtrains Developer''s Manual'
---

# Name
`lessp`, `greaterp`, `equalp`, `not_lessp`, `not_greaterp`, `not_equalp`, `min`, `max` - Speed limit comparison functions

# Synopsis

* `lessp(a, b)`
* `greaterp(a, b)`
* `equalp(a, b)`
* `not_lessp(a, b)`
* `not_greaterp(a, b)`
* `min(a, b)`
* `max(a, b)`

# Description
`lessp()`, `greaterp()`, `equalp()`, `not_lessp()`, `not_greaterp()`, and `not_equalp()` are predicate functions that returns, respectively,

* Whether `a` is more strict than `b`
* Whether `a` is less strict than `b`
* Whether `a` and `b` indicate the same speed limit
* Whether `a` is not more strict than `b`
* Whether `a` is nor less strict than `b`
* Whether `a` and `b` do not indicate the same speed limit

`min()` returns the speed limit that is more strict. `max()` returns the speed limit that is less strict.