Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
checking for null parameter causes crash
gib65
<p>Hello,</p><p> </p><p>I created a report parameter that could be left blank. It shows up with a check mark beside it that says "no value". I leave it blank and check "no value", and then try to test whether nor not it's null in the script:</p><p> </p><p>if (params["myParam"] == null)
{
print("myParam is null");
}
else
{
print("myParam is not null");
}</p><p> </p><p>But instead of printing out a message, it crashes.</p><p> </p><p>I know my print() function works. I've been using it for months. If even checking the parameter for a null value causes it to crash, how can I test for a null value?</p>
Find more posts tagged with
Comments
There are no comments yet