What actionscript command can I use to exit a action?

I am using an action with several IF statements:

Example:

IF {(start type of service "ccmexec" is not "auto")}
regset "[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\ccmexec]" "Start"=dword:2
endif

If one of the actions down the chain of IF’s works to solve the issue I want to end the action without proceeding. Can someone tell me what command I can use?

Something like:

IF {(relevance is true)}
STOP
endif
  • Thanks
1 Like

You can use:

continue if { <relevance> }

So the following will always terminate

continue if { false }

I think you can also do the following:

if { TRUE }
    exit 1
endif
1 Like

The action will show a Failed result if you terminate it via

continue if {false}

…so be sure that’s what you want. What I usually do is to wrap the subsequent steps in an if {} statement that is false if I’m ready for the action to complete. As a worst case you could duplicate the whole Fixlet relevance several times, something like

if {whatever relevance tells me I have a problem}
  //try resolution operation 1
endif

if {whatever relevance tells me I have a problem}
  //try resolution operation 2

endif

if {whatever relevance tells me I have a problem}
  //try resolution operation 3
endif

continue if {NOT whatever relevance tells me I have a problem}
  // returns a FAILED result if this thing is still relevant
2 Likes

Perfect, that’s exactly the options I was looking.

Thank you.

1 Like