Difference between revisions of "NXSL:GetEventParameter"

From NetXMS Wiki
Jump to navigation Jump to search
Line 1: Line 1:
__NOTOC__
__NOTOC__
Get value of event's named parameter. Function returns requested parameter's value on success or NULL if given parameter does not exist.
Get value of event's named parameter.


'''Since:''' 1.1.4
'''Since:''' 1.1.4
Line 17: Line 17:
== Return Value ==
== Return Value ==


String value of named parameter or '''NULL''' if no such parameter exist.
String value of requested parameter or '''null''' if no such parameter exist.


== Examples ==
== Examples ==

Revision as of 09:26, 22 October 2014

Get value of event's named parameter.

Since: 1.1.4

Syntax

GetEventParameter(event, parameterName)

Parameters

event Event object, you can use predefined variable $event to refer to current event.
parameterName Parameter's name.

Return Value

String value of requested parameter or null if no such parameter exist.

Examples

GetNamedParameter($event, "ifName")	-> "eth0"
GetNamedParameter($event, "bad_name")	-> NULL