Conditional Orders
Manual Tutorials

Basic tutorial:

Starting
Setting up a bus service
Setting up a train service
Setting up a plane service
Conclusion

Advanced railway tutorial:

Two Platforms
Two Tracks
Basic Network

In game tutorial:

In-game tutorial
In-depth Instructions

Railway construction:
Building tracks
Building stations
Building depots
Placing signals
Buying & selling trains
Converting railways
Road construction:
Building roads
Building stations and loading bays
Building depots
Buying & selling road vehicles
Waterways construction:
Building docks
Building depots
Placing buoys
Buying & selling ships
Building locks and canals
Airport construction:
Building airports
Buying & selling aircraft
General construction:
Building bridges
Tunnels
Landscaping
Working with vehicles:
Setting vehicle orders
Refitting vehicles
Replacing vehicles
Grouping vehicles
OpenTTD Manual
Installation · FAQ
Tutorials and Instructions
Game interface · README.md
Infrastructure

Railways:

Signals · Stations · Junctions · Carrying capacity · Rail Designs & Tips
Roadways · Tramways · Waterways · Airports · Landscaping
Vehicles
Trains · Road vehicles · Ships · Aircraft · Orders
Settings
Game options · Settings · AI settings · Custom graphics (NewGRF) · Cheats · Command line
Graphics and sound
OpenGFX · OpenMSX · OpenSFX
More topics
Climates · Towns · Industries · Economy · Disasters · Tips · Hidden features · Hotkeys · Console · Game Mechanics · Multiplayer · Scenario editor · Online content
Troubleshooting · Links

Conditional Orders allow more fine grained control than regular orders.

Using the interface to set up a conditional order

The conditional order in this example will send a vehicle to stop in the depot when it's near or past its max age.

Steps

/File/en/Manual/Conditional-orders-step5.png

Step 1. Make a note of the vehicles max age.

/File/en/Manual/Conditional-orders-step1.png

Step 2. First, create your normal orders. Then add an order to stop at the depot. Highlight the order to go to the depot.

/File/en/Manual/Conditional-orders-step2.png

Step 3. Pull down the "go-to" menu and select conditional order.

/File/en/Manual/Conditional-orders-step3.png

Step 4. Select order 1 for the jump to destination.

/File/en/Manual/Conditional-orders-step4.png

Step 5. Select the conditional order so you can edit it.

/File/en/Manual/Conditional-orders-step6.png

Step 6. Set the condition to Vehicle age - is less than - some number. In the example I send the bus to the depot one year before it's max to keep from getting too many "is getting old" messages.

Effect of order explained

/File/en/Manual/Conditional-orders-explanation.png

This bus will now visit the two stations for 10 years. When the vehicle is 11 years old the vehicle will follow order 4 and go stop in the depot. This is because order 3 will jump back to order number one while the condition is true. Once the vehicle ages to 11 years, the condition will no longer be true and the order will be skipped.