Added an example for run conditions. Fixes #7646 if we wait till #7605 is merged and include some of it features.