Skip to content

ACFILTER_IS_ENABLED ​

ACFILTER_IS_ENABLED returns whether the attribute and class filter is enabled or disabled.

Syntax ​

leo-grammar
CC "Documentation" ACFILTER_IS_ENABLED attribute:strValue

#--> RESULT ecode:intValue enabled:boolValue
CC "Documentation" ACFILTER_IS_ENABLED attribute:strValue

#--> RESULT ecode:intValue enabled:boolValue

Parameters ​

  • attribute (strValue) - the name of the attribute

Returns ​

  • ecode (intValue) - Contains the error code or is 0 in case of success
  • enabled (boolValue) - is 1 if the AC filter is enabled and 0 if it is disabled.

Details ​

See Also ​

ACFILTER_GFX_IS_ENABLED
ACFILTER_DISABLE
ACFILTER_ENABLE

Examples ​

asc
CC "Documentation" ACFILTER_IS_ENABLED attribute:"Attribut- und Klassenfilter"
SET s:"The attribute and class filter is %enabled."
SET s:(replace(s, "%", cond(enabled, "", "not ")))
CC "AdoScript" INFOBOX (s)
CC "Documentation" ACFILTER_IS_ENABLED attribute:"Attribut- und Klassenfilter"
SET s:"The attribute and class filter is %enabled."
SET s:(replace(s, "%", cond(enabled, "", "not ")))
CC "AdoScript" INFOBOX (s)

Versions and Changes ​

Available since ADOxx 1.3