Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

2 case calculation?

Featured Replies

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

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 by Guest
added PS

  • Author

Perfect, thanks!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.