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
    • 2 yrs 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
      • 2 yrs ago
      • Reported - view

      Alain Fontaine Works perfectly!  Thank you.

Content aside

  • 2 yrs agoLast active
  • 2Replies
  • 52Views
  • 3 Following