From all the MMM examples I have seen, the IF and Else block can each only take 1 action/line. Is this true? Can the "Else" block execute multiple actions/lines? Same question for the "IF-execution" block?
This would be useful to eliminate the Goto Macro Line construction to make the MMM code more readable.
Similar question: Is it possible to squeeze 2 or more MMM lines into 1 line? Just out of curiosity since this may not be that useful anyway.
1 | IF | PROCESS ID | 11632 | EXIST | KILL PROCESS ID | 11632 | ELSE | 1 | IF | PROCESS ID | 14212 | NOT EXIST | RUN PROGRAM | C:\temp\mmmout.mmmacro 2 | IF | TIME | 9:29:43 AM | IS AFTER CURRENT TIME | GOTO MACRO LINE | 10 | ELSE | 2 | RUN ACTION | | | | STOP
Conditions can have one other IF statement after an ELSE (like line 1) or an action statement after the else (line 2).
I started working on multiple nested IF's and some AND's some time ago but have not got round to adding it into an update yet.
Ideally this is what I want: IF [CONDITION] TRUE [ACTION] AND [ACTION] AND [ACTION] ELSE IF [CONDITION] TRUE AND [CONDITION] TRUE [ACTION]
I hope to add something like that logic into the macro in a coming update but for now, only single nested like the macro lines 1 and 2 above.