Message 1 of 14
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, can someone explain to me why the IF condition cannot be used in this code?
The time.txt file contains only the number 1688722295
Interestingly, if I delete the IF condition in this code, the program will work.
FILE OPEN "time.txt" FOR READ AS "inp"
INT $read_seconds = 0
FILE READ $read_seconds FROM "inp"
FILE CLOSE "inp"
INT $diff = time() - $read_seconds
IF $diff > 60 {
MESSAGE INFO $diff
}
Solved! Go to Solution.