terminals 1/2/3 are all connected indoors airside and have outdoor sidewalks landside. Terminal 5 is only connected to the others by the tram, no way to walk. If you're changing terminals at ORD not involving 5, you never want to take the tram, as any time savings over walking will be killed by reclearing security.