Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Finding OUTSIDE of a Range from in a Script


This topic is 8367 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Hi...

I have a table where Field1 contains both positive and negative values. I have a need to search for a set of records where Field1's values are outside of a specific range, ex: -3 to +5. As the range doesn't fall evenly on a number line, I cannot use the ABS[] value and just seach for values greater than X.

Does anyone know of a way to execute a find (from within a script) to retrieve a set of records where Field1 is less than -3, and greater than +5? Is there a way to combine a NOT operator with the range span operator (...) from within a FIND[] step, from within a script?

Thanks in advance,

-KJ

Posted

Use the Omit Record step immediately after setting up the Find criteria. This is just like checking the Omit box in Find mode. For example:

Enter Find Mode []

Insert Text [select,numberField,"-3...5"]

Omit Record

Perform Find []

You could also find the range, then show omitted records, but it's a bit slower:

Enter Find Mode []

Insert Text [select,numberField,"-3...5"]

Perform Find []

Show Omitted

Copy_and_Paste_r2.zip

This topic is 8367 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.