You are viewing limited content. For full access, please sign in.

Question

Question

Quick Fields - Nested Conditionals

asked on August 22, 2022

Just wondering if there is any way to nest conditionals, as it would be nice to be able to look at a data input and check it multiple ways.  I get that I could do something with scripting, and maybe that's what I'll need to do, but it would be great to have a conditional that said "If data_x is not found when looking it up, then perform these checks on data_x" with a list of conditionals of known issues with data_x from the OCR process.

1 0

Replies

replied on August 24, 2022

You can do this without nested conditionals by using 1) multiple conditional processes and 2) slightly more complex conditions.  Instead of nesting the conditional processes, you need to repeat that "outer" condition as an if all of the following are true  condition before each of the other, more specific conditions.

Pseudo-code Example
Conditional 1
    if all of the following are true
        If lookup data was not found when using data_x
        If data_x has invalid characters

    Remove invalid characters and retry lookup
Conditional 2
    if all of the following are true
        If lookup data was not found when using data_x
        If data_x has too many characters

    Truncate data_x and retry lookup

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.