Dear all.
To narrow down the rlike, you can write, for example
However, we also wanted to be more flexible in how we narrow down the search.
Startdatetime := '2023-02-10T12:00:00.000';<br /><br />if Startdatetime rlike '^2023-02-10' then
true;
else
false;
end if;For example, can I use rlike with global variables as in the attached protocol?
If anyone knows how to do this, it would be appreciated if you could share!

You can just use:
if Startdatetime rlike '^' . @YMD then
Even simpler, you don't need the if else statement at all, you can just replace the whole expression in the filter with:
Startdatetime rlike '^' . @YMD
if Startdatetime rlike '^' . @YMD then
It's so helpful to know how to write this!
Thank you very much.
Startdatetime rlike '^' . @YMD
I knew how to write this one without using true and false, but I had not written it this way due to a matter of preference.