#if($Values.get('total_gym_one_score_low_signal').Result == 1) #end
## If we are not at the end of the simulation, let the user change decisions. #if($ModelInfo.SimStep < $ModelInfo.EndStep)



##If a form has not been submitted with step, then don't update the mainFrame. ## Since FML is executed before the HTML is generated, this script will only appear ## when the simulation is running. ## If we are not at the end of the simulation, let the user change decisions. #set($GraphArray = ["total_expense","gym_one_revenue","gym_one_NOI"] ) #set($LegendArray = ["Total Expense","Total Revenue","Net Operating Income"] ) #set($GraphWidth = 425) #set($GraphHeight = 300)

Buffi The Gym Girl

Buffi's mood
#if($FunctionLibrary.integer($Values.BUFFI.Result) == 1)

#else

#end

Total score

$Values.Total_Gym_One_Score

Month
$Run.SimTime

Sim Step
$Run.SimStep of $Run.EndStep

Total Profit or Loss
$Values.Gym_One_Tot_Profit_or_Loss

Net Operating Income
$Values.gym_one_NOI

Total Revenue
$Values.gym_one_revenue

Total Expenses
$Values.total_expense

Gym Members
$Values.Gym_One_Members

#if($FunctionLibrary.integer($Values.BUFFI.Result) == 0)
#elseif($FunctionLibrary.integer($Values.BUFFI.Result) == 1) #else
#end


#CustomLineGraph($GraphArray $GraphWidth $GraphHeight "0xFFFFFF" false "" "" "1")

#if ($LegendArray.size() > 0) #else #end #if ($LegendArray.size() > 1) #else #end #if ($LegendArray.size() > 2) #else #end #if ($LegendArray.size() > 3) #else #end
  $LegendArray.get(0)  $LegendArray.get(1) 
  $LegendArray.get(2)  $LegendArray.get(3) 

#if($FunctionLibrary.integer($Values.BUFFI.Result) == 1) Buffi is a member of the gym and lifting weights!
#else #end

#if($FunctionLibrary.integer($Values.Gym_One_Tot_Profit_or_Loss.Result) < -100000) Gym has lost over $100,000 per month you could be terminated!! #else #end

#if($FunctionLibrary.integer($Values.Gym_One_Tot_Profit_or_Loss.Result) < -200000) Gym has lost over $200,000 per month; you could be terminated!! #else #end

#if($FunctionLibrary.integer($Values.Gym_One_Tot_Profit_or_Loss.Result) > 100000) Gym has profit of over $100,000 per month #else #end

#if($FunctionLibrary.integer($Values.maint_mark.Result) == 0) Gym not well maintained; spend more on maintenance, otherwise forget getting Buffi! #else #end

$Values.get("expand_gym").Label
$Values.get("gym_one_employees").Label
$Values.get("gym_one_maintenance_expend").Label
$Values.get("gym_one_marketing_expenditure").Label
$Values.get("gym_one_monthly_fee").Label
$Values.get("gym_one_number_of_amenities").Label
$Values.get("number_of_gym_one_sales_reps").Label

## When we are in the final time step (when SimStep == EndStep) then ## we can't enter decisions, so don't display them. #else #end