- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-14-2020 01:51 AM
Just a quick (hopefully) trivial question.
I have a field on a table, the field has the word '(empty)' in it, so it is not literally empty, but instead states that it is (empty).
I have a script using the nil() GlideElement.
What I want to know, will nill() return false on this field? Because there is the string (empty) in there? Or does (empty) literally mean empty, therefore nill() will be true?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-14-2020 01:57 AM
is it reference field or string type field?
if reference type field then it will be empty and nil() will be true. if its string type field then it is actually a string there so it will not give true.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā04-14-2020 02:19 AM
Hey Cris,
Like you said that its just a word 'empty' that means it is a string value so it will not nil.
kindly mark Correct and Helpful if applicable.
Regards,
Indrajit.