Made changes for all conditional rules to support nested statements.