USA
800 691 9120
UK
01225 704844
We use cookies on our website to analyze website usage and to help secure the website against misuse. Advertising and functional cookies are not used in our site or our web application products.
By clicking “Accept Essential Cookies Only”, you consent to us placing these cookies.
Assert that at least one row matching a WHERE condition exists in a table
Queries the specified table with the given WHERE clause. If no matching row is found, throws an exception with the error message. In the error message, use $filter and $table as substitution tokens for the actual filter and table name.
| Parameter | Description |
|---|---|
| cmd | table name to query |
| Argument 0 | WHERE clause (without the WHERE keyword) that must match at least one row |
| Argument 1 | error message to raise if no match is found (supports $filter and $table tokens) |
Test.Exists "table name to query", "WHERE clause (without the WHERE keyword) that must match at least one row", "error message to raise if no match is found (supports $filter and $table tokens)"