'elif' did not follow 'if'
-
Where am I going wrong with this triggered macro :-
if state.status = "paused"
M24
elif state.status = "processing"
M25
which I getting back 'elif' did not follow 'if'The docs say :-
if <boolean-expression>
...
elif <boolean-expression>
...
else
...or should I use break eg.
if state.status = "paused"
M24
break
elif state.status = "processing"
M25 -
Hi,
The lines between an IF and ELIF or ELSE need to be indented.
Frederick
-
Like this ?
if state.status = "paused" M24 elif state.status = "processing" M25
still getting the same 'elif' did not follow 'if
o.k I've got you
if state.status = "paused" M24 elif state.status = "processing" M25