continue if

This command allows the next line in the script to be executed if the value provided as a parameter evaluates to true. It will stop without error if the specified value evaluates to false. You can use relevance substitution to compute the value. This command is useful in making sure that certain conditions are met to run the remainder of an action. The line number where the action script exited is reported to the console. Users of the IBM BigFix can use this line number to identify why an action is failing if you insert a continue if statement that identifies an invariant required by your action.

Syntax

continue if <true condition>

Where true condition represents a relevance expression to evaluate.

Examples

continue if {name of operating system = "Win2k"}
download now http://www.real-time.com/downloads/win98/dun40.exe

This example will download the dun40.exe file only if the operating system is Win 2000.

continue if {(size of it = 325 and sha1 of it = "013e48a5") of file 
  "dun40.exe" of folder "__Download"}
wait __Download/dun40.exe /Q:A /R:N

This example will run the dun40.exe file only if the size and sha1 value are as specified.

Version 5.1 and above