Read boolean from Ini buggy?

Hi,

I've got a problem reading boolean-values from an ini-file. If I use the action 'read ini file' I always get the default-value instead of the value that is in the ini-file.

If I use 'load variable from ini' everything is fine.

I included a project to make it reproducable.

HHK

Sorry, I forgot the files. Here they are.Ini.atz4 (1.472 KB)

Without seeing the ini file it’s difficult to tell what is going on.

Here it is.

No, here it is.001_Ini.zip (138 B)

This is actually not a bug, the windows ini file api’s do not handle true or false as boolean values, only 1 or 0. If you change the action to read the value as a string then Automise will actually interpret it as a boolean value.

That’s good to know. I changed the action. Now everything works fine. Thanks!