Как отмечали другие, это невозможно без использования внешних инструментов.
Мое решение на данный момент таково:
PSEUDOCODE:
// create temp table;
// insert conditional DDL statement(s) into temp table along with an execute column
// run condition, and if valid, set temptable's corresponding row to execute 1;
// after condition is over, run all true statements in temp table