FORUMS
Remove All Ads from XDA

Null value

2 posts
Thanks Meter: 0
 
By qwertnard, Junior Member on 16th November 2019, 06:50 AM
Post Reply Email Thread
I am trying to determine if it is a variable is null. Currently if I have a variable %car it will return "ford". However if it is empty the variable will return as a string %car. How do I turn that into a null value or have tasker recognize it should treat it as null.
16th November 2019, 01:36 PM |#2  
ktmom's Avatar
Senior Member
Thanks Meter: 2,420
 
More
Quote:
Originally Posted by qwertnard

I am trying to determine if it is a variable is null. Currently if I have a variable %car it will return "ford". However if it is empty the variable will return as a string %car. How do I turn that into a null value or have tasker recognize it should treat it as null.

That is by design. If you test for "not set", it will be TRUE when %car = %car and FALSE when %car = ford.

Uninitialized Variables
User-variables which have not had a value assigned do not have replacements carried out e.g. in the expression I love %fruit, if %fruit is uninitialized, the expression remains as it is, otherwise %fruit is replaced with the value.

Exception: uninitialized variables used in mathematical expressions are replaced with 0.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes