![]() |
![]() |
We are currently migrating this forum over to our HelpSystems domain. Please post all new threads in our new HelpSystems Community Portal. |
![]() |
|
![]() |
AutoMate Discussion | ![]() |
help :
faq :
home
|
||
Latest News:
|
latest topics : statistics |
Topic Title: Len(%variable%) > 0 is always true on a NULL value Topic Summary: Created On: 07/21/2017 07:44 AM Status: Read Only |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Right now I have a dataset. Before I would check a NULL value if the with a len() > 0 type of function. This makes it simple because I don't have to add any more columns to my dataset to base the if statement off of. Below is a sample code. These always return true when the variable contains a NULL value.
This worked fine in version 10. After the switch to 11, it exhibits the above behavior. Any suggestions? Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) |
|
|
|
![]() |
|
Have you tried the IsNull (and/or IsEmpty) function in place of len?
------------------------- ?? . Your Total IT Solutions Provider ?? . Business Class Hosting Services |
|
|
|
![]() |
|
How would you check for NOT Isnull(%variable%) like this?
Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) |
|
|
|
![]() |
|
Hello Jon,
One workaround to accomplish your goals is to use an "if statement" and compare your data value against an empty variable. We understand you would like to use the expression better, but this may be used as an alternative. Task Steps: (Right click, Select All, Copy to copy to the clipboard. Steps can then be pasted into the AutoMate Task Builder) ------------------------- ![]() Alex Escalante | Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665 |
|
|
|
![]() |
|
v11.0.2.22:
IF %dataset.columnvalue% = 1 will also return TRUE even if dataset.columnvalue is NULL. Argh. |
|
|
|
![]() |
|
Hi Robert,
I wasn't able to reproduce this here. How are you generating the dataset? ------------------------- ![]() Devin Cannon | Support Analyst AutoMate | Division of HelpSystems HelpSystems, LLC | T: +1.213.738.1700 | F: +1.213.738.7665 |
|
|
FuseTalk Enterprise Edition v4.0 - © 1999-2021 FuseTalk Inc. All rights reserved.