Discussion in 'AutoInput' started by Bill2938, May 16, 2017.
Is it possible to use an IF statement multiple variables in an AND statement?
Sorry what do you mean exactly? Can you give a concrete example?
I use UI Query to set two variables from a particular screen. If I get a match in the IF statement on both then proceed to the task, if there is no match I refresh the screen until I see the match. I have good success with one variable in another task but this would improve my results.
A4: AutoInput UI Query [ Configuration:App Package: com.amazon.rabbit
Check Screen State: false
Variables: utx, time
Only Visible: true
Only Clickable: true Timeout (Seconds):20 ]
A5: If [ %time ~ *AM* & %utx ~ *UTX2* ]
A6: AutoInput Action [ Configuration:Type: Id
Action : Click
If I understand correctly this is not related to AutoInput, correct? You mean the Tasker "If" condition? What exactly isn't working about it?
The task refreshes a screen in an app until it detects an "offer". The offer has several elements that I can use in takser but so far I am only able to use one at a time. It would be useful to me to be able to use the tasker IF command to use two variables to determine the next action.
Ok, so what isn't working about the method you used?
When both conditions are met the task should click a button but it doesn't happen. I can see the screen refresh until it gets the desired combination but it just continues the loop. I can run the task with one variable very reliably.
If [ %time ~ *AM* & %utx ~ *UTX2* ]
On each loop, can you please show the contents of %time and %utx in a flash action? Maybe they really don't match those values
Separate names with a comma.