AnsweredAssumed Answered

Need help with Checkbox script

Question asked by danlee on Feb 20, 2015
Latest reply on Feb 20, 2015 by philmodjunk

Title

Need help with Checkbox script

Post

I need to create 2 checkbox.  One for Weight Loss and another for Weight Gain.  If the user checks Weight Loss that calculation would be used and if the user check Weight Gain that calculation would be used.  

The calculation for Weight Loss is:

Case ( not IsEmpty ( ActivityLevelPossibleDelete ) ; Max ( Case ( ActivityLevelPossibleDelete = "Sedentary" ;(1.2 * BMRCalculator) - 500;
ActivityLevelPossibleDelete = "Lightly Active (1-3 days/week)";(1.375 * BMRCalculator) - 500;
ActivityLevelPossibleDelete = "Moderate (3-5 days/week)" ;(1.55 * BMRCalculator) - 500;
ActivityLevelPossibleDelete = "Very Active (6-7 days a week)" ;(1.725 * BMRCalculator)-500) ; 1200 ) )

and the calculation for Weight Gain is:

Case ( not IsEmpty ( ActivityLevelPossibleDelete ) ; Max ( Case ( ActivityLevelPossibleDelete = "Sedentary" ;(1.2 * BMRCalculator) + 500;
ActivityLevelPossibleDelete = "Lightly Active (1-3 days/week)";(1.375 * BMRCalculator) + 500;
ActivityLevelPossibleDelete = "Moderate (3-5 days/week)" ;(1.55 * BMRCalculator) + 500;
ActivityLevelPossibleDelete = "Very Active (6-7 days a week)" ;(1.725 * BMRCalculator) + 500) ; 1200 ) )

I am not sure how to go about setting this up.  Thank you for any help on this!

Outcomes