tmas73 Posted April 6, 2009 Posted April 6, 2009 How is it possible to have 2 case functions in one calculation? Case 1 = Case ( uw = "g" ; ?; uw = "oz";: * .0352739619 ) Case 2 = Case ( lye_type = "NaOH" ; recipes::sum_NaOH * (1 - superfat_percent / 100); lye_type = "KOH";recipes::sum_NaOH * (1 - superfat_percent / 100) ) Both NaOH and KoH should have the possibility of "g" and "oz" conversion. Case ( uw = "g" ; (Case2); uw = "oz"; (Case2 * .0352739619 ) Thanks
mr_vodka Posted April 6, 2009 Posted April 6, 2009 (edited) Well you can have the case be for every situation: Case ( uw = "g" and lye_type = "NaOH"; blah blah; ) etc. You could even user a let statement to clean it up. However in your case, you probably can just use. Case ( uw = "g"; 1; uw = "oz"; .0352739619 ) * Case ( lye_type = "NaOH" ; recipes::sum_NaOH; lye_type = "KOH"; recipes::sum_KOH ) * ( 1 - superfat_percent / 100 ) P.S. Why is both lye_type retunring sum_NaOH? I changed the second to sum_KOH. Edited April 6, 2009 by Guest added PS
Recommended Posts
This topic is 5768 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now