How to check for NULL values?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-09-15 11:25 PM
What is the recommended way of testing for NULL values? For example I have created an Image type page input that is stored in a Data Item without setting an initial value (empty). I would like to test if the Image Data Item is empty at the start of the page.
I am doing this in an Object by the way...
Thanks!
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
05-09-15 12:04 AM
If your data stage has no initial value then you can simply use a decision stage with the expression [data]""""
Hope that helps.
Justin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
09-09-15 12:03 AM
@Justin Bishop
It works for text or number data types, but not for images... I still used it, but resorted to catch the exception that throws.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-09-15 06:55 PM
a month late, i realize, but you can have another data item on the page that is of the type Picture, but don't put anything in it.
then substitue the """" in justin's example with that blank picture item
