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

simple qyestion regarding hour

haima123

Newbie
i have problem in defaying the hour in if then
which varible or statment should i write to get the hour trigger in if then
in this screen that i attached in the file
 
Last edited by a moderator:
i have problem in defaying the hour in if then
which varible or statment should i write to get the hour trigger in if then
in this screen that i attached in the file
 

Attachments

  • test 600.jpg
    test 600.jpg
    37.2 KB · Views: 177
I have no idea what you are asking.

The way to post something here …
Highlight the Profile or Task name
Tap three dots
Tap Export
Tap Description to Clipboard
Paste the Clipboard into a message

… Thom
 
An example of a Profile/Task …

Profile: tlaProx (365)
State: Proximity Sensor
State: Not Call [ Type:Any Number:* ]
Enter: tlaProxEnter (293)
A1: System Lock

… Thom
 
An example of a Profile/Task …

Profile: tlaProx (365)
State: Proximity Sensor
State: Not Call [ Type:Any Number:* ]
Enter: tlaProxEnter (293)
A1: System Lock

… Thom
tom all i am asking is
you have dayw-for choosing the day of the week
you have daym-for choosing date
what is varible for defaying hour in if then flow
 
It is %hour in the following task …

Code:
Dev6 (180)
A1: Variable Split [ Name:%TIME Splitter:. Delete Base:Off ]
A2: Variable Set [ Name:%hour To:%TIME1 Recurse Variables:Off Do Maths:Off Append:Off ]
A3: If [ %hour > 12 ]
A4: Variable Subtract [ Name:%hour Value:12 Wrap Around:0 ]
A5: Variable Set [ Name:%hour To:0%hour Recurse Variables:Off Do Maths:Off Append:Off ] If [ %hour < 10 ]
A6: Variable Set [ Name:%hourap To:pm Recurse Variables:Off Do Maths:Off Append:Off ]
A7: Else
A8: Variable Set [ Name:%hourap To:am Recurse Variables:Off Do Maths:Off Append:Off ]
A9: End If
A10: Flash [ Text:%hour:%TIME2%hourap Long:On ]

… Thom
 
Last edited:
It is %hour in the following task …

Dev6 (180)
A1: Variable Split [ Name:%TIME Splitter:. Delete Base:Off ]
A2: Variable Set [ Name:%hour To:%TIME1 Recurse Variables:Off Do Maths:Off Append:Off ]
A3: If [ %hour > 12 ]
A4: Variable Subtract [ Name:%hour Value:12 Wrap Around:0 ]
A5: Variable Set [ Name:%hour To:0%hour Recurse Variables:Off Do Maths:Off Append:Off ] If [ %hour < 10 ]
A6: Variable Set [ Name:%hourap To:pm Recurse Variables:Off Do Maths:Off Append:Off ]
A7: Else
A8: Variable Set [ Name:%hourap To:am Recurse Variables:Off Do Maths:Off Append:Off ]
A9: End If
A10: Flash [ Text:%hour:%TIME2%hourap Long:On ]

… Thom
thom thanks enjoy your vac u r great
 
Back
Top Bottom