# Unexpected result for conversion using V\>0

**URL:** <https://forum.realdash.net/t/unexpected-result-for-conversion-using-v-0/5239>\
**Category:** Adapters (CAN/LIN)\
**Created:** [April 22, 2024, 1:32am UTC](https://forum.realdash.net/t/unexpected-result-for-conversion-using-v-0/5239 "2024-04-22T01:32:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![series8217](https://forum.realdash.net/user_avatar/forum.realdash.net/series8217/32/1086_2.png) [@series8217](https://forum.realdash.net/u/series8217)\
**Post date:** [April 22, 2024, 1:32am UTC](https://forum.realdash.net/t/unexpected-result-for-conversion-using-v-0/5239/1 "2024-04-22T01:32:37Z")

</div>

For some reason Check Engine Light is 1 but Malfunction Flags is 0. What gives? Since Check Engine Light has identical mapping to Malfunction Flags, the values should both be zero. How does V\>0 resolve to 1?

```auto
<frame id="0x387" endianness="big">
      <value name="Malfunction Flags" offset="0" length="4"></value>
      <value targetId="65" name="Check Engine Light" offset="0" length="4" units="bit" conversion="V>0"></value>
</frame>

```

---

<div class="post-metadata">

**Author:** ![series8217](https://forum.realdash.net/user_avatar/forum.realdash.net/series8217/32/1086_2.png) [@series8217](https://forum.realdash.net/u/series8217)\
**Post date:** [April 22, 2024, 2:12am UTC](https://forum.realdash.net/t/unexpected-result-for-conversion-using-v-0/5239/2 "2024-04-22T02:12:44Z")

</div>

Did some further testing. I tried “V!=0”, “V\>0” and also tried mapping the check engine light to the full 4 byte frame of malfunction flags like below:

```auto
<frame id="0x387">
<value targetId="65" name="Check Engine Light" offset="0" length="4"></value>
</frame>

```

But Check Engine Light remains 0 even when frame 0x387 contains 0x00 0x08 0x00 0x00 according to the CAN monitor in RealDash.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [April 22, 2024, 5:50am UTC](https://forum.realdash.net/t/unexpected-result-for-conversion-using-v-0/5239/3 "2024-04-22T05:50:55Z")

</div>

Not sure if you really mean conversion=“V\>1”? That means that value will be 1 if that 4 byte value is less than 1. As value is not marked as signed value “V\>1” will never be true.

---

<div class="post-metadata">

**Author:** ![series8217](https://forum.realdash.net/user_avatar/forum.realdash.net/series8217/32/1086_2.png) [@series8217](https://forum.realdash.net/u/series8217)\
**Post date:** [April 22, 2024, 6:26am UTC](https://forum.realdash.net/t/unexpected-result-for-conversion-using-v-0/5239/4 "2024-04-22T06:26:57Z")

</div>

What I’m attempting to do is:  
If 4-byte malfunction flags has any value other than 0, Check Engine Light is 1. Otherwise Check Engine Light should be 0.

---

<div class="post-metadata">

**Author:** ![realdashdev](https://forum.realdash.net/user_avatar/forum.realdash.net/realdashdev/32/6_2.png) [@realdashdev](https://forum.realdash.net/u/realdashdev)\
**Post date:** [April 23, 2024, 6:24am UTC](https://forum.realdash.net/t/unexpected-result-for-conversion-using-v-0/5239/5 "2024-04-23T06:24:46Z")

</div>

```auto
<value targetId="65" offset="0" length="4" conversion="V != 0"></value>

```

The above should work just fine for that.
