doc: add condition tutorial

First cut of a tutorial on conditions.

cc: #6701