AutoNotification Empty variables after query?

Discussion in 'AutoApps' started by Dubs, Nov 17, 2017.

  1. Dubs

    Dubs Member

    Joined:
    Nov 3, 2017
    Messages:
    30
    Likes Received:
    0
    Sometimes I get empty variables after querying AN for %antitle() and %antext(). How can I prevent Tasker from running certain tasks 'if' these fields are empty?

    If %antext() ~! __________?



    Sent from my SM-N900T using Tapatalk
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You can test if %antext is not set for example.
     
  3. Dubs

    Dubs Member

    Joined:
    Nov 3, 2017
    Messages:
    30
    Likes Received:
    0
    I've tried 'Is Set' but it doesn't work, my tasks never go active and Tasker gives me this log error (attached) until it is removed[​IMG]

    Sent from my SM-N900T using Tapatalk
     
    Last edited: Nov 17, 2017
  4. Dubs

    Dubs Member

    Joined:
    Nov 3, 2017
    Messages:
    30
    Likes Received:
    0
    Nevermind, I actually found out that I can use regex instead of 'Is Set' which for some reason wasn't working for me. I had to create global variables out of the AN variables to make it work:

    If %VAR !~R ^\% (Is Set)
    If %VAR ~R ^\% (Not Set)

    Sent from my SM-N900T using Tapatalk
     
  5. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    9,479
    Likes Received:
    806
    You should check Is Set with %antext and not %antext() :) I think that’s what was wrong...
     

Share This Page