The judge hears enough evidence to find you guilty, but does not enter that finding. Instead you are placed on community supervision with conditions: reporting, drug tests, classes, sometimes a GPS monitor or a curfew.
Finish it, and the case is dismissed with no conviction. Break the conditions, and the judge can find you guilty and sentence you anywhere in the full range for the offense, not just the number in the original deal.