This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
usage:nodes:atc_controller [2019-07-02 12:30] 82.67.173.193 |
usage:nodes:atc_controller [2019-12-03 11:40] blockhead Metres per second |
||
---|---|---|---|
Line 41: | Line 41: | ||
''< | ''< | ||
- | * a number constituted only of digits. This represents | + | * a number constituted only of digits. This represents |
* the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[reference: | * the special value **M**, which represents the maximal speed of the train as defined by the entity definition passed to [[reference: | ||
Line 50: | Line 50: | ||
Brakes until the train speed reaches ''< | Brakes until the train speed reaches ''< | ||
- | ''< | + | ''< |
Execution of the ATC command continues **immediately**. | Execution of the ATC command continues **immediately**. | ||
Line 98: | Line 98: | ||
=== <, <=, >, >= === | === <, <=, >, >= === | ||
- | Compares the current train speed to the given speed. That speed should be a number constituted only of digits, | + | Compares the current train speed to the given speed. That speed should be a number constituted only of digits, |
It is not currently possible to test directly the speed for equality or inequality. | It is not currently possible to test directly the speed for equality or inequality. | ||
+ | |||
+ | Although there is no direct command, it is possible to use nested conditional commands to test for equality or inequality: | ||
+ | < | ||
+ | I<8 | ||
+ | Not equal to 8 | ||
+ | E | ||
+ | | ||
+ | Not equal to 8 | ||
+ | E | ||
+ | Equal to 8 | ||
+ | ;; | ||
+ | </ | ||
+ | |||
+ | Unfortunately the command < | ||
==== Examples ==== | ==== Examples ==== |