It's 15:57 in S.Korea.
In my expectation, this 'If function' should execute sth though,
it shows error message that 'this function doesn't meet the condition'.
I have no idea.
I guess maybe it's because of SummerTime.
S.Korea doesn't have summer time.. so I guess It's why the function doesn't work properly.
Do you have any idea?
it delays exactly an hour.
it's 16:00 here, now the function works
I want to help you. But occasionally I am wrong, and I'm not certain if I'm right in this case. I apologize if I am mistaken.
The first thing I want to say is that the IF statement cannot generate an error. If the conditions are (all) met, then it executes the first block of statements. Otherwise, the second block of statements is executed. There is no possibility of an "error." Therefore it cannot generate an error message, which you said was "this function doesn't meet the condition." Can you show us the rest of this action so we can get a better idea of what's happening? Maybe you have a Display action which generated the message.
You said that when the time hit 16:00, then the function "worked." I presume you mean "it returned a true result and executed the first block of statements." That seems to make sense, because your second condition requires that the HOUR() be from 16 to 23. It should only work when HOUR() returns 16 to 23, and it also requires that your variable Last Wake Day is not equal to the calculation of DAY().
If you want to know why a condition is not met when it should be met, or vice versa, simply display the variable or calculation before the IF statement. That way you can see what's about to be evaluated. Maybe like this: (this will display the values AND pause the program)...
My personal recommendation, especially when using multiple conditions, is to nest them like this:
This way you can determine what went wrong more easily, especially if you have different sounds generated for the second half of the IF action, like this:
Oh my god.. I took a really silly mistake.
[15 < HOUR() AND HOUR() < 24]
I was expecting this function to work on 3PM... '<' doesn't contain 15 itself
I did 'alert thing' as you've advised... I found that mistake.
Thanks for you advise!
And also, thanks for constructing idea with 'If function'.
Your tip helps me to find error more accurately!
I'm only beginner with KM, Your advise saves my time and make me see the problem from different point of view
I'm glad you are happy.
I agree, advice from people often helps, not only solving the current problem, but opening one's eyes to different solutions and techniques.