
Not applicable
2014-11-25
01:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to write if statement with not NULL ?
Hello,
I have a field , from a SQL database that I would like to IF against :
If (fieldname NOT NULL, do this )
How would I write this like above, but correctly ?
- Tags:
- qlikview_scripting
1 Solution
Accepted Solutions


Creator III
2014-11-25
01:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if( isNull('Fieldname'),'null conditon','not null conditon');
This will work..
Thanks
Chaitanya
6 Replies


Creator III
2014-11-25
01:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if( isNull('Fieldname'),'null conditon','not null conditon');
This will work..
Thanks
Chaitanya


Master II
2014-11-25
01:58 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
try below code:
If(not isnull(filedname) ,1,0)
HTH
Sushil

MVP
2014-11-25
01:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try with
If( IsNull(fieldname) = 0, do this )
Or
If( Not IsNull(fieldname), do this )
Regards
Anand


Master III
2014-11-25
01:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Try this:
=if (not isnull(Plant_ShortName),Plant_ShortName & ' - ' & Plant_FullName)
Thanks,
AS
40,866 Views

Master III
2014-11-25
01:59 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If (IsNull(fieldname> <> -1, 'do this' )
40,866 Views

Not applicable
2014-11-25
02:07 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks , that worked perfectly !
40,866 Views
