Unconditional _try
This command is an "empty" command that allows you to add fields to the result without any conditions.
Unconditional _try Command Sample 1
:command (
:cmd_name (unconditional_try)
:add_field (
:type (const)
:field_name (product)
:field_type (string)
:field_value ("Antivirus")
)
)
|
A common usage of unconditional_try
is with the switch command. In example 2, each message ID is attached with its corresponding message
field which denotes its meaning.
Unconditional _try Command Sample 2
:command (
:cmd_name (switch)
:field_name (msgID)
(
:case (106017)
:command (
:cmd_name (unconditional_try)
:add_field (
:type (const)
:field_name (message)
:field_type (string_id)
:field_value ("LAND Attack")
)
)
)
:(
:case (106020)
:command (
:cmd_name (unconditional_try)
:add_field (
:type (const)
:field_name (message)
:field_type (string_id)
:field_value ("Teardrop Attack")
)
)
)
.
.
.
)
|