Tasker -> If (math and pattern matching)

214 views
Skip to first unread message

RogueSpear

unread,
Oct 13, 2010, 10:25:37 PM10/13/10
to Tasker
I've just discovered that you can do addition or subtraction with
variables in an If statement:

%NEARHOME=1
%ATHOME=1


If %NEARHOME + %ATHOME = 2


I am wondering if I can use Tasker's pattern matching or ( / ) in this
fashion. Or would that be interpreted as performing math division?

BossMan

unread,
Oct 14, 2010, 3:56:56 AM10/14/10
to Tasker
You can, but the syntax is different then regexp's. See this:
http://tasker.dinglisch.net/userguide/userguide_matching.html

BR,
A.

RogueSpear

unread,
Oct 14, 2010, 8:38:33 AM10/14/10
to Tasker
I must have read this 100 times:

" In the If condition of an action, when the ~ (match) or !~ (not
match) operators are specified. "

yet for some reason it did not register in my brain.

Thanks...
Reply all
Reply to author
Forward
0 new messages