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.

2replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • 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
    
    Like
      • Alan Cooke
      • Alan_Cooke.1
      • 5 mths ago
      • Reported - view

      Alain Fontaine Works perfectly!  Thank you.

      Like
Like Follow
  • 5 mths agoLast active
  • 2Replies
  • 31Views
  • 3 Following