Next Topic

Previous Topic

Book Contents

else

Adds an Else command underneath a corresponding If command. Any steps listed under the Else command are executed when the corresponding If command returns a False result.

Example - Sample Procedures.Managed Services.Disk Mgmt.Clean.Windows Disk Cleanup (wdc)

If hasRegistryKey("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\VolumeCaches\Compress old files") Does Not Exist
	executeProcedure(WDC Step 1", " ", "Immediate", "All Operating Systems", "Halt on Fail")
Else
	executeProcedure(WDC Step 2", " ", "Immediate", "All Operating Systems", "Halt on Fail")