IsOptionValid Function

Class

AgentClass class.

Action

Tests whether or not the Agent recognizes the specified option.

Syntax

bTest = Agent.IsOptionValid(aoOptionName)
Variable Description
bTest TRUE if the Agent recognizes aoOptionName as a valid option. BOOLEAN.
aoOptionName The name of the option to test for. AGENTOPTION.

IsOptionValid is useful when your Agent is older than the current release.

Example

[-] if(Agent.IsOptionValid(OPT_SHOW_INVIS_OBJS))
	[ ] Agent.SetOption("OPT_ SHOW_INVIS_OBJS", TRUE)