You're so right!Traffic lights are a sequence of operations, it can be done with boolean logic but perhaps the best way is a sequencer i.e. a word variable where it goes from 0 through to say 10 (although a good idea to use steps of 10 that leaves plenty of steps for enhancements. it also means you can force to jump steps, go back or hold. here is a 4 way junction but programmed for two way traffic i.e. no left (or right if in the US etc.) filters. best to keep the outputs seperate from the controlling logic that way it is easy to add or disable certain lights or add pedestrian crossings.
In general the use of sequences are severely underrated - and the use of logic severely overrated.
Most of my programs are mostly sequences that talk to each other. There is logic as well but wherever it is, it's always simple. It's because the logic only has to apply to one simple scenario - one step in a sequence.
If you try to logically define when a particulary light should be lit, say green on traffic light no 1, you will end up with extremely complicated logic. If you however have a sequence for each traffic light, that's has a number of steps, the logic for the green light will be very simple. For example it's green when the sequence is in step 4 or 5.
In computer science a sequencer used like this is called a finite state machine.
A sequence can be implemented in a PLC using ladder or any other type of language. You don't need anything special.

