-- First convert to lower case if it is a string
for_against_style = string.lower(for_against_style)
if for_against_style=='gs' or for_against_style=='gameset' or for_against_style=='gamessets' then
fa_letter = 'GS'
fa_word_sing = 'GameSet'
fa_word_plur = 'GamesSets'
elseif for_against_style=='none' then
hide_for_against = true
else
fa_letter = 'GS'
fa_word_sing = 'GameSet'
fa_word_plur = 'GamesSets'
end
-- True if exist, false otherwise
if yesno(use_percentage_val) then do_percentage = true end
-- Use points instead of point for/against
local game_for_against_style = Args['game_for_against_style'] or 'games'
local gfa_letter, gfa_word_sing, gfa_word_plur
local hide_game_for_against = false
-- First convert to lower case if it is a string
for_against_style = string.lower(for_against_style)
if game_for_against_style=='s' or game_for_against_style=='set' or game_for_against_style=='sets' then
gfa_letter = 'S'
gfa_word_sing = 'Set'
gfa_word_plur = 'Sets'
elseif game_for_against_style=='none' then
hide_game_for_against = true
else
gfa_letter = 'S'
gfa_word_sing = 'Set'
gfa_word_plur = 'Sets'
end
-- Whether to use goal ratio (goal average) instead
local use_ratio_val = Args['use_goal_ratio'] or 'no'
local do_ratio = false
-- True if exist, false otherwise
if yesno(use_ratio_val) then do_ratio = true end
-- Whether to use goal percentage instead
local use_percentage_val = Args['use_goal_percentage'] or 'no'
local do_percentage = false
-- True if exist, false otherwise
if yesno(use_percentage_val) then do_percentage = true end
-- Use points instead of point for/against
|