# Formatted SQL With PreConditions - 3.0.2

**URL:** <https://forum.liquibase.org/t/formatted-sql-with-preconditions-3-0-2/2346>\
**Category:** General Discussion\
**Created:** [August 5, 2013, 10:44pm UTC](https://forum.liquibase.org/t/formatted-sql-with-preconditions-3-0-2/2346 "2013-08-05T22:44:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![testuser](https://avatars.discourse-cdn.com/v4/letter/t/e495f1/32.png) [@testuser](https://forum.liquibase.org/u/testuser)\
**Post date:** [August 5, 2013, 10:44pm UTC](https://forum.liquibase.org/t/formatted-sql-with-preconditions-3-0-2/2346/1 "2013-08-05T22:44:00Z")

</div>

Hi Guys,  
  
I´ve read that liquibase supports “preconditions in formatted sql”. Is there any documentation how I am supposed to use them?  
  
I saw the pull request from “user: barneyb” [barneyb - code snippet.](https://github.com/barneyb/liquibase/commit/5753a97b6b0d448b66cb6358ded0604f2682149a)  
but i wasn´t quite sure how to use them.  
  
Maybe someone can help me.  
  
regards  
Sam

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [August 5, 2013, 10:44pm UTC](https://forum.liquibase.org/t/formatted-sql-with-preconditions-3-0-2/2346/2 "2013-08-05T22:44:00Z")

</div>

You start with a --preconditions line

Then for each precondition you want you use --precondition-[NAME-OF-PRECONDITION]. If your precondition takes parameters, you use a name:“value” syntax.

Nathan
