Print Download PDF Send Feedback

Previous

Next

Switch

This command enables to compare the result of a specified field against a list of predefined constant values.

Switch Command Parameters

Parameter

Description

field_name

The field name whose value is checked.

case

One or more case attributes followed by the value with which to compare.

default

Execute only if no relevant case is available. The default value is optional.

Switch Command Sample

:command (

     :cmd_name (switch)

     :field_name (msgID)

     :(
           :case (302005)
           :command ()
     )
     :(
           :case (302001)
           :case (302002)
           :command ()
     )
     :default (
           :command()
     )
)