FANDOM


filter.GetBonus Edit

Function
number filter.GetBonus(string name)
Description
Bonus score of the filter
V1 Function Name
New to V2

filter.GetBonus returns the bonus or penalty associated with the specified filter.

The function filter.GetNames can be used to determine the available filters.

For example:

filt = filter.GetNames ()


print ( #filt .. " conditions or filters" )
for ii = 1, #filt do
    print ( "#" 
                .. ii .. 
            ", name = \"" 
                .. filt [ ii ] ..
            "\", bonus = "
                .. filter.GetBonus ( filt [ ii ] ) 
          )
end

might produce the output:

3 conditions or filters
#1, name = "Interaction Energy", bonus = -0
#2, name = "SS Design", bonus = 150
#3, name = "Residue Count", bonus = -800
Community content is available under CC-BY-SA unless otherwise noted.