April 6, 200916 yr 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
April 6, 200916 yr 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, 200916 yr by Guest added PS
Create an account or sign in to comment