Try this, where Database is the name of your database object <dtml-if "Database.connected()"> Yes <dtml-else> No </dtml-if> DR