- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2024 06:15 AM
Hello people of servicenow,
I have a script in VA. I have somes values that come up null.
I am trying to put some kind of if statement "null" or null to take them out but it doesnt work.
Am I using too many '=''?
Should I just resort to using str.replace(/null/g, ""); or am I missing something here?
Thanks,
Carol
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2024 02:01 AM
I managed to solve this I used (vaVars.thepromptsix!==null) , double equals sign was needed not just one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2024 06:23 AM
why not use JS util notNil() function?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2024 06:34 AM - edited ‎10-08-2024 06:45 AM
Hi Ankur,
Thanks I have given it a try and it didnt work. Will try and look into other ways to get this working.
Carol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-11-2024 02:01 AM
I managed to solve this I used (vaVars.thepromptsix!==null) , double equals sign was needed not just one.