You could do a similar thing as shown in the post above, but with Smartdashboard.
If you write:
Code:
SmartDashboard.putNumber("exampleVal", value);
You can edit the value before the match, depending on the auto you want then write the following to get the value and use it to run a specific sequence.
Code:
SmartDashboard.getNumber("exampleVal");