using IF to check f...
 
Notifications
Clear all

We had a major storm through here recently and we suffered damage to the house roof and ceilings. I just received the quote to repair. I’m hoping that a small fraction of the 80,000 odd people that download SDIO and/or Desktop Info every month won’t mind chipping in a few dollars to help out. Click on the big blue button at the bottom of the page to help us keep a roof over our heads, literally!

Guests have read-only access to our forums. If you wish to participate you will need to register. Be sure to activate your account from the email sent to you when you register.

[Solved] using IF to check for Null

4 Posts
2 Users
1 Reactions
310 Views
RatboyJim
(@ratboyjim)
Eminent Member Registered
Joined: 6 months ago
Posts: 19
Topic starter  

I'm trying to detect a variable with a Null value. 

the [text] section contains null-result=<null>

 

COMMENT=display:%weatherPrecipRain%
IF=value1:%weatherPrecipRain%,value2:<null>,comp=eq,set:Result=%1,eval:0
TEXT=display:%Result%

Always displays the following:

<null>
Fixed Text:                      False

I've tried comp=contains and having no value after value2:, but can never get the expression to evaluate to true

There is probably a simple solution, but I'm fried.


   
Quote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

comp=eq   should be    comp:eq


   
ReplyQuote
RatboyJim
(@ratboyjim)
Eminent Member Registered
Joined: 6 months ago
Posts: 19
Topic starter  

Thanks Glenn!

 

I knew it was something simple. I just needed a nap. 🤣 


   
Glenn reacted
ReplyQuote
Glenn
(@glenn)
Member Admin
Joined: 7 years ago
Posts: 1501
 

I know the feeling 🙂


   
ReplyQuote
Glenn's Page