FANDOM


filter.ConditionSatisfied

Function
bool filter.ConditionSatisfied(string name)
Description
Is the condition satisfied or the filter active
V1 Function Name
New to V2

filter.ConditionsSatisfied returns true if the specified condition is satisfied, or if the specified filter is enabled.

The function filter.GetNames can be used to obtain the possible filter and condition names.

For example:

filt = filter.GetNames ()


print ( #filt .. " conditions or filters" )

for ii = 1, #filt do
    print ( "#" 
                .. ii .. 
            ", name = \"" 
                .. filt [ ii ] .. 
            "\", satisfied = " 
                .. tostring ( filter.ConditionSatisfied ( filt [ ii ] ) )
          )
end
Community content is available under CC-BY-SA unless otherwise noted.