Add conditions

This is a clone of @danrasband's branch https://github.com/stevenjack/cfndsl/pull/37 with the error redirection removed and located in a separate branch - https://github.com/stevenjack/cfndsl/pull/43