2

Action to change another action's conditions

My Tasker automatically ends calls from some phone numbers presenting a same pattern (End call action if %CNUM ~ /*xxxxxx*/*yyyyyy*/). I would like to add newcoming patterns without having to manually edit this condition by opening Tasker. When a new pattern is detected and is represented by %blockcall for example in the detection task, I can add it by Set %BLOCKCALL : /*%blockcall*%BLOCKCALL (%BLOCKCALL would be the already blocked patterns /*xxx*/*yyy*/) but then I can't automatically modify the End call action's condition. I would like an action in the detection task that replaces other actions in other tasks or their conditions. For example, Task : ... Action's number : .. Replace action by : no  Replace conditions by : %CNUM ~ %BLOCKCALL (or directly %CNUM ~ /*%blockcall*%BLOCKCALL) and this modified condition would contain the variables' values in the targeted action, not the variables themselves. Because by now I don't know if just something like %CNUM ~ *%BLOCKCALL()* with xxxx as %BLOCKCALL1, yyyy as %BLOCKCALL2, etc. could work and how.

1 reply

EDIT : My Tasker automatically ends calls from some phone numbers presenting a same pattern (End call action if %CNUM ~ /*xxxxxx*/*yyyyyy*/). I would like to add newcoming patterns without having to manually edit this condition by opening Tasker. When a new pattern is detected regarding blocked entire numbers and is represented by %pattern for example in the detection task, I could add it by Set %PATTERN : /*%pattern*%PATTERN (this last variable would be the already blocked patterns /*xxx*/*yyy*/) but then I can't automatically modify the End call action's condition which is located in an incoming call task. I would like an action that replaces other actions' conditions in other tasks. For example, Task : ... Action's number : .. Replace conditions by : %CNUM ~ %PATTERN Write variables values instead of names : no/left terms/right terms/both (or Tasker would simply write values as soon as they are custom unempty variables' ones). So this modified condition would contain my variable's value in the targeted action, not the variable itself excepting %CNUM. Because by now I don't know if just something like %CNUM ~ *%PATTERN()* for End call action with xxxx as %PATTERN1, yyyy as %PATTERN2, etc. could work and how.