• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Using If / Else Command

JJN

Lurker
Hi everyone,

Need some help here, I am trying to figure out the command to launch 2 different apps based on the WiFi condition, in such flow;

#11. If WiFi is on - Launch Tunein
#2. Else if WiFi is off - Launch Poweramp

How do I configure this in Tasker? I am an amateur in programming and only able to work until #1.
 
I would do it backwards..launch Wi-Fi if Tunein is on, then else so on..I don't know, I think it would do it easier..
 
The following does what you ask …

Code:
BBB (592)
A1: If [ %WIFI ~ on ]
A2: Launch App [ App:TuneIn Radio Pro Data: Exclude From Recent Apps:On Always Start New Copy:On ]
A3: Else
A4: Launch App [ App:poweramp Data: Exclude From Recent Apps:On Always Start New Copy:On ]
A5: End If

… you need to manually invoke this task to test if WiFi is on and then it launches one of the two apps.

My GUESS is that it isn't really what you are trying to accomplish.

… Thom
 
Last edited by a moderator:
Back
Top Bottom