filter.AreAllEnabled Edit

bool filter.AreAllEnabled()
True if all filters are active
V1 Function Name
New to V2

filter.AreAllEnabled returns true if all filters (also known as conditions) are enabled, or false otherwise.

When present, filters or conditions must be enabled for the current score to be counted.

All filters can be disabled using behavior.SetFiltersDisabled ( true ) or filter.DisableAll. Individual filters can be disabled using filter.Disable or enabled using filter.Enable.

filter.EnableAll enables all filters, as does behavior.SetFiltersDisabled ( false ).

The following example illustrates the use of this function.

res = filter.AreAllEnabled ()
print ( "all filters enabled = " .. tostring ( res ) )
Community content is available under CC-BY-SA unless otherwise noted.