title: Using formula output as variable
body: <p>I'm trying to take the following HStack:</p>
  <pre><code>HStack {
    Text(&quot;BUN/Creatinine Ratio&quot;)
    Spacer()
    Text(&quot;\((coredata.one / coredata.two), specifier: &quot;%.0f&quot;)&quot;)
  }
  </code></pre>
  <p>And apply the following if...then statement to it:</p>
  <pre><code>if let numberValue = Double(formulaOutput) { //Output from the above formula.
    if (10...20) ~= numberValue {
      Image(systemName: &quot;checkmark.circle.fill&quot;)
          .foregroundColor(Color(UIColor.systemGreen))
    }
    else {
      Image(systemName: &quot;exclamationmark.circle.fill&quot;)
          .foregroundColor(Color(UIColor.systemRed))
    }
  }
  </code></pre>
  <p>I just can't figure out how to use the output as a variable. Also, is it possible to define more than one range for the &quot;else&quot; statement? &lt;10 = Value 1, &gt;20 = Value 2?</p>
  <p>Thanks!</p>