You can check for variable values with a code snippet, if the value you expect is set then continue with the DQL
export default async function () {
if ($important_filter != "expected value") {
return null
}
// execute DQL...
...
return data;
}