1. Download our Official Android App: Forums for Android!

[Tasker] wait based on Variable Value

Discussion in 'Android Apps & Games' started by ldm1417, Oct 11, 2018 at 5:11 PM.

  1. ldm1417

    ldm1417 Member
    Thread Starter
    Rank:
     #643
    Points:
    16
    Posts:
    57
    Joined:
    Aug 7, 2018

    Aug 7, 2018
    57
    8
    16
    Hi All,

    The Tasker has a 'wait' command, which may wait for any period of time. But you need to define an exect wait time.

    But, is it possible to implement a similar command (wait), where the wait time is set by a variable (let say 'wait for %XXX sec' while %XXX is a variable)?

    Actually I want to change the wait time externally from the task.

    Thank you!
     

    Advertisement

    b0615126204 likes this.
  2. Thom

    Thom  
    VIP Member
    Rank:
     #21
    Points:
    1,318
    Posts:
    12,002
    Joined:
    Feb 16, 2011

    Feb 16, 2011
    12,002
    4,970
    1,318
    Male
    Software Developer
    Keene, NH USA
    In the Wait tap the two crossed arrows on the far righrt of Seconds. It will prompt you for a variable name. Use it like …

    Dev4
    A1: Variable Set [ Name:%MyTime To:5 Recurse Variables:Off Do Maths:Off Append:Off ]
    A2: Wait [ MS:0 Seconds:%MyTime Minutes:0 Hours:0 Days:0 ]
    A3: Flash [ Text:%MyTime Long:Off ]

    … Thom
     
    Xavier Black, ldm1417 and b0615126204 like this.
  3. b0615126204

    b0615126204 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    2
    Joined:
    Friday

    Friday
    2
    0
    5
     
  4. ldm1417

    ldm1417 Member
    Thread Starter
    Rank:
     #643
    Points:
    16
    Posts:
    57
    Joined:
    Aug 7, 2018

    Aug 7, 2018
    57
    8
    16
    Thom, worked for me, thanks!
     
    Thom likes this.

Share This Page

Loading...