Difference between revisions of "Exists"
(Created page with "Checks if a value exists in a databox. True is returned if there is a value. False is returned if the value is empty/blank ==Example One== File:exists1.png Write a valu...") |
|||
Line 1: | Line 1: | ||
+ | [[File:exists0.png]] | ||
+ | |||
Checks if a value exists in a databox. True is returned if there is a value. False is returned if the value is empty/blank | Checks if a value exists in a databox. True is returned if there is a value. False is returned if the value is empty/blank | ||
Line 28: | Line 30: | ||
[[File:exists5.png]] | [[File:exists5.png]] | ||
+ | |||
+ | As there is a value in the databox, the script follows the path that selection the message for TRUE. | ||
==Example Two== | ==Example Two== | ||
+ | |||
+ | [[File:exists6.png]] | ||
+ | |||
+ | Don't write anything into '''Examples.Logical''' then databox read of the expression '''Examples.Logical.Exist''' If no value exists then display a message to say it's false. | ||
===Setup=== | ===Setup=== | ||
+ | |||
+ | [[File:exists3.png]] | ||
+ | |||
+ | Exists expression to check for a value | ||
+ | |||
+ | [[File:messagetrue.png]] [[File:messagefalse.png]] | ||
+ | |||
+ | Messages for TRUE and FALSE | ||
===Demonstration=== | ===Demonstration=== | ||
+ | |||
+ | [[File:exists7.png]] | ||
+ | |||
+ | Select Exists = False to leave '''Examples.Logical''' databox blank. | ||
+ | |||
+ | [[File:exists8.png]] | ||
+ | |||
+ | As there is no value in the databox, the script follows the path that selection the message for FALSE. |
Revision as of 11:31, 5 September 2019
Checks if a value exists in a databox. True is returned if there is a value. False is returned if the value is empty/blank
Example One
Write a value into Examples.Logical. Then databox read of the expression Examples.Logical.Exist If a value exists then display a message to say it's true.
Setup
Company databox with value populated
Exists expression to check for a value
Messages for TRUE and FALSE
Demonstration
Select Exists = True to populate a value into the Examples.Logical databox.
As there is a value in the databox, the script follows the path that selection the message for TRUE.
Example Two
Don't write anything into Examples.Logical then databox read of the expression Examples.Logical.Exist If no value exists then display a message to say it's false.
Setup
Exists expression to check for a value
Messages for TRUE and FALSE
Demonstration
Select Exists = False to leave Examples.Logical databox blank.
As there is no value in the databox, the script follows the path that selection the message for FALSE.