Template: Have Ditch show when slope is toward the roadway

I recently found an old InRoads video that shows what I am trying to achieve in ORD. I want the ditch to show when the existing grade slopes toward the road and a fill slope when it falls away. The video used the template below. When the slope is below LT_DTCH_BS it has a fill slope. When above, it draws the ditch.