Question
Is it possible to implement the following logic by FlexiLayout Language scripting in the "Advanced" tab: if one Static Text element was already found, do not search for the next Static Text element variants.
An example:
Static text: "Billed amount" / "Bill amount" / "Total amount including tax"
If "Billed amount" is found, do not search for other static text.
Answer
To do so, you can add a script like the following to the Advanced pre-search relations in the Advanced tab:
if [Element].IsFound then {
dontfind();
}
If the above script finds the element specified in Element, it means that the script does not search for the added element.
Comments
1 comment
Xavier LIENART
Hi,
To complete this article, can you indicate how to reference the "Billed amount" element? I did not understand the syntax of referencing a text element where there are several assumptions?
Or give a concrete example to specify a text element in [Element].
Thanks
Please sign in to leave a comment.