- Better data quality: only enrich rows that meet your criteria, so you don’t waste processing on irrelevant data.
- Lower cost: skipped rows do not consume credits.
Generate with AI
You don’t need to learn CEL syntax to use run conditions. Databar includes a built-in AI generator that writes the expression for you. Just describe what you want in plain English and the AI will produce the corresponding formula. For example, type “only run on rows where the country is US and the company has more than 50 employees” and the AI will generate{country} == "US" && {employee_count} >= 50.
Syntax basics
Run conditions are written using CEL (Common Expression Language), an open expression language created by Google. To reference a column in your table, type{ and select the column name.
Operator reference
Comparison operators
Combining multiple conditions
Use logical operators to chain multiple conditions together in a single run condition expression.Text operators
Math operators
List operators
Handling empty values
Examples
Simple conditions (single rule)
Combining two conditions
Combining three conditions
Combining four or more conditions
Tips
Test on a small batch first
Test on a small batch first
Before running an enrichment with a new condition across thousands of rows, use the Run single row option or filter your table to a small subset. This lets you verify the condition behaves as expected without spending credits.
Use parentheses to be explicit
Use parentheses to be explicit
When mixing
&& and ||, wrap groups in parentheses so the evaluation order is clear. Without parentheses, && binds more tightly than ||, which can produce unexpected results.Check for empty values
Check for empty values
Use
has({column}) or {column} != "" before operating on a column that might be empty. This prevents errors from calling .contains() or .startsWith() on a null value.Mind your types
Mind your types
CEL is type-aware. If a column stores numbers as text, you may need to convert with Similarly, text comparisons are case-sensitive by default. Use
int() before comparing:.lowerAscii() to normalize.Skipped rows are free
Skipped rows are free
Rows that fail a run condition are not sent to the data provider and do not consume credits. Use conditions aggressively to keep costs predictable.
FAQ
Can I use multiple run conditions?
Can I use multiple run conditions?
Yes. You combine multiple conditions in a single expression using
&& (AND) and || (OR) operators. For example, {country} == "US" && {employee_count} >= 50 && {email} != "" checks three conditions at once. There is no limit to how many conditions you can chain together. See Combining multiple conditions for the full syntax.Do skipped rows cost credits?
Do skipped rows cost credits?
No. Rows that fail a run condition are never sent to the data provider and do not consume any credits.
Can I use run conditions with waterfalls?
Can I use run conditions with waterfalls?
Yes. Run conditions work with both single enrichments and waterfalls. The condition is evaluated before the waterfall starts, so skipped rows don’t trigger any providers.
Next steps
Enrichments
Learn how to add and run enrichments on your tables.
Automations
Combine run conditions with scheduled or event-driven automation.