0

Converting an input to an output

I have three input fields:

Watts Input
BTU Input
Temp Input

The Output field is:

BTU OUTPUT

In the case of Watts Input -  BTU OUTPUT is  Watts Input * 3.41
In the case of BTU Input - BTU OUTPUT is identical
In the case of Temp Input  - BTU OUTPUT is Temp Input * 1.8

How does one script this?  Only one Input field will be used at any one time.

2 replies

null
    • Alain_Fontaine
    • 1 yr ago
    • Reported - view

    You could try something like:

    switch true do
    case 'Watts Input' != null:
        'Watts Input' * 3.41
    case 'BTU Input' != null:
        'BTU Input'
    case 'Temp Input' != null:
        'Temp Input' * 1.8
    end
    
      • Alan_Cooke.1
      • 1 yr ago
      • Reported - view

      Alain Fontaine Works perfectly!  Thank you.

Content aside

  • 1 yr agoLast active
  • 2Replies
  • 52Views
  • 3 Following