Note
This is a script statement and operates only in scripts when scripting is enabled with the following command: enable cli scripting {permanent} .
Command block to be executed if the condition specified in the associated IF statement is not met.
statements | Actions to be executed when the conditions specified in the associated IF statement are not met. |
N/A.
CLI scripting must be enabled before using this command.
This command must be preceded by IF _expression THEN statements and followed by ENDIF.
You can insert comments by using a number sign (#).
The following example executes the show switch command if the value of the variable x is greater than 2, and execute the show vlan command otherwise:
IF ($x > 2) THEN show switch ELSE show vlan ENDIF
This command was first available in ExtremeXOS 11.6.
This command is available on the Summit X450-G2, X460-G2, X670-G2, X770, and ExtremeSwitching X440-G2, X620, X690, X870 series switches.