Hello. I have a piece of code that I've been working on using
JDBC and Groovy, to retrieve id's from a specified filter for report results.
I have my filter wrapped in an if else statement, which checks for All book types in the
if and everything else in the
else.
However, when I select 'All' as my filter choice, the if appears to be ignored and the else code is run, which cannot return a correct id for this choice, causing it to fail.
I am at a loss as to why this block of code is being ignored.
The code is as follows:
This code is then passed into another query which gets back the book type by the specified id: