Welcome To Support Community
Direct, Draw, and JDraw
Welcome to Support!
Search for an answer or ask a question of the zone or Customer Support.
When using custom filter, I have the following code:
accession is defined AND accession ne '';
subj_id is defined AND subj_id ne '';
I received the following error message:
line 2, Statement doesn't appear to do anything. (I am not sure why line 2 did not do anything)
But if the code is written this way, then it would be okay.
(accession is defined AND accession ne '')AND (subj_id is defined AND subj_id ne '');
My question is, does custom filter only allow one line of code?
I will appreciate any input!
May 14, 2018
Best Answer chosen by Leela214
The PP help for Custom Filter states "If the last statement in the expression evaluates to True or non-zero, the record is sent out the Pass port. Otherwise it is sent out the Fail port."
So, the last statement in your code is what is evaluated for TRUE / FALSE.
Like you say, combining both with a boolean AND (or OR if you only require one to be TRUE) allows both to be used in the final evaluation.
But, you can have a whole bunch of Pilotscript running before that final boolean evaluation, if that's required.
May 15, 2018
You need to sign in to do that.
Need an account?
Have an account?
Browse by categories
Pipeline Pilot Client