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

simple qyestion regarding hour

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: 149
Upvote 0
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:
Upvote 0
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
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones