これが私のコードです:
IniRead, intLastMyDate, c:\temp\test.ini, section1, intLastMyDate, 130101
formattime, intCurrentMyDate, A_Now, yyMMdd
; if the ini has a date stored that is less than today, I will want to
; include code that restarts some other variables for a new day
; but if the date is the same as today, I want to leave those values alone,
; no matter how many times I reload the script after fiddling with the code
if intLastMyDate < intCurrentMyDate
{
IniWrite, %intCurrentMyDate%, c:\temp\test.ini, section1, intLastMyDate
; following just to show failure of test to do what I expect
MsgBox, if condition evals %intLastMyDate% < %intCurrentMyDate% as true
}
スクリプトを初めてロードすると、期待どおりの結果が得られます。再読み込みすると、130510 (これを投稿した日) が 130510 未満であると考えているようです。これはデータ型の問題ですか? ヘルプによると、数値のように見えるものはすべて数値として評価されます...