title: Adaptive Cards change text color from if condition
body: <p>I want to change the color of an adaptive card output which comes from the database according to its value eg: if workhour &lt; 6 = color of the adaptive card showing the work hours must be red. if it is greater than 6 hours the work hours must be displayed in green.</p>
  <p>Any idea of how I must achieve this?</p>
  <p>Below is a part of the JSON code along with data I call from the database.
  Also, I will be implementing this on Microsoft Teams.</p>
  <pre><code>&quot;type&quot;: &quot;Column&quot;,
            &quot;items&quot;: [
              {
                &quot;type&quot;: &quot;TextBlock&quot;,
                &quot;weight&quot;: &quot;bolder&quot;,
                &quot;text&quot;: &quot;Work Hours&quot;
              },
              {
                &quot;$data&quot;: &quot;${AttendanceMonthly}&quot;,
                &quot;type&quot;: &quot;TextBlock&quot;,
                &quot;weight&quot;: &quot;bolder&quot;,
                &quot;separator&quot;: true,
                &quot;text&quot;: &quot;${WorkedHours}&quot;
              }
  </code></pre>