Is there an array feature in IML? Also struggling with macro syntax.
I'm doing a macro that writes values to a text file and it's not working properly. Intention is to give me an estimate of the time saved using each macro.
The last bit of the line below doesn't work - (macro_1_count * 5)
fwrite write_file_name macro_1_name + ',' + macro_1_count + ',time-saved-' + (macro_1_count * 5)
If the line is
fwrite write_file_name macro_1_name + ',' + macro_1_count + ',time-saved-' + macro_1_count
It works fine, but as soon as I try to put the calculation in it, it doesn't work.
macro_1_count is defined as a float, so is does IML not allow calculations within some commands? If so I'll have to add an extra line in my macro to create a variable for the write string.
For a macro like this, where there are several variables for each macro, it would be better if the values were stored in some sort of array or table - is there something like this in IML? I'm currently evaluating 38 macros, so there are a lot of variables to create.

