Use AND logic on variables in Tasker I have Tasker speak texts to me if the phone is not in silent mode. (The task looks something like Say 'text from %SMSRN who said %SMSRB' if %SILENT ~ off, and it's run by a profile activated when a text is received.)

This works well except when I'm on a phone call and the text is read out while I'm in conversation!  Doesn't happen much but it's annoying. So what I want to do is have it read out texts when I'm not in silent mode AND when I'm not on a call.

I can set up a variable %INCALL to equal 1 when the phone is off the hook (and clear the variable when the phone is idle). 

Therefore, I want texts read (if %SILENT ~ off AND %INCALL != 1).

I can't see any way to do an AND in Tasker logic. Is there an elegant way to handle this?
You can specify AND logic in contexts, not just tasks. Don't forget that you can have multiple contexts that must all be met (logical AND) before the task(s) run. Try adding the context State &gt; Call [Any, Invert = YES]; this would mean the profile will only activate 1) when a text is received AND 2) no call is active.