AgentClass class.
Tests whether or not the Agent recognizes the specified option.
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.
[-] if(Agent.IsOptionValid(OPT_SHOW_INVIS_OBJS)) [ ] Agent.SetOption("OPT_ SHOW_INVIS_OBJS", TRUE)