![]() |
AFAIK You can´t do this with your aggregation query. Launch the query and, by code, check the count. |
Follow the Example.
Example:
PHP
<?php
$data = 5;
if ( $data < 10 ){
echo 'Below';
} else {
echo 'Upper';
}
?>
How to count if string is below than 10 sum | PHP String Tutorial |
Read Full: | PHP String Tutorial |
Category: | Web Tutorial |
Sub Category: | PHP String Tutorial |
Uploaded by: | Admin |
Views: | 99 |
Tested on: | PHP 7.4 |
Reffered: https://stackoverflow.com/questions/23730985/allow-insertion-only-if-count-is-less-than-10