The slope of the Treasury curve is the ten-year par yield minus the two-year par yield, or whichever pair you named. If both numbers are published for the same day, the difference is simple arithmetic, and it matters which pair is used.
A negative slope has preceded some American recessions and has also cried wolf. The historical pattern is a reason economists watch the slope. It is not a trigger that fires on the day the line crosses zero.