June 7, 201411 yr Hi All, I have a backup script that I have set to run if the elapsed time since the last backup is equal to greater than 24 hours but it will not run: If[user_Data::Time_Elapsed_since_Backup ≥ "23:59:59"] Perform Script ["Backup"] End If Elapsed_Time_Since_Backup is a calculation field set to Time What can I not see?
June 7, 201411 yr There are several critical things missing from your description - most importantly, what is the actual content of the Time_Elapsed_since_Backup field when the script checks it? Does the script check it at all? Is it a field that the script can see from the current context? Lots of potential failure points. However, one thing jumps out immediately: "23:59:59" is text, not time. To compare a Time field to a time constant, you should use: Timefield ≥ Time ( 23 ; 59 ; 59 )
June 7, 201411 yr Author Hi Comment, Sorry about the missing parts, this script is part of a larger one that performs two functions based on an On Timer script and as it was only this part that is failing I only included the failure. Yes the script does check but I think your comparator is my problem, I was checking on text not time. I have changed and will know in the next five minutes if it now works correctly. Thank You That did indeed resolve it Edited June 7, 201411 yr by Oyseka
Create an account or sign in to comment