# Equality of two flow variables in Rule Engine

**URL:** <https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418>\
**Category:** KNIME Analytics Platform\
**Created:** [December 12, 2020, 2:51pm UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418 "2020-12-12T14:51:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![KKERROXXX](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/958977/32.png) [@KKERROXXX](https://forum.knime.com/u/KKERROXXX)\
**Post date:** [December 12, 2020, 2:51pm UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/1 "2020-12-12T14:51:21Z")

</div>

Hi everyone,

I am working on a flow consist of two different flow variable generated by a variable selection node. I try to use these two flow variables in rule engine node to set some rule. When I set a rule given below, I get “This rule might never match” warning.

$${Svalue (column)}$$ = $${Svalue}$$ =\> 1  
TRUE =\> 0

The variable $${Svalue (column)}$$ is a column name that can be selected in variable selection node.  
The other variable $${Svalue}$$ is a specific value of $${Svalue (column)}$$ that can be selected in same variable selection node.

Can anyone help me to solve this issue?

Thanks,

Kerem

---

<div class="post-metadata">

**Author:** ![crnico](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/c/eada6e/32.png) [@crnico](https://forum.knime.com/u/crnico)\
**Post date:** [December 13, 2020, 7:18am UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/2 "2020-12-13T07:18:36Z")

</div>

Hi kkerroxxx,  
Could you please share a pièce of workflow so I can try to help you?

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [December 15, 2020, 11:49am UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/3 "2020-12-15T11:49:33Z")

</div>

Hello @KKERROXXX,

what are you trying to accomplish with comparing column name versus single column value? Or maybe that is not what you are aiming for?

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![KKERROXXX](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/958977/32.png) [@KKERROXXX](https://forum.knime.com/u/KKERROXXX)\
**Post date:** [December 23, 2020, 7:59pm UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/4 "2020-12-23T19:59:12Z")

</div>

@ipazin Actually I am trying to assign selected variable value to the selected variable column

Best

---

<div class="post-metadata">

**Author:** ![Daniel\_Weikert](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/d/e47c2d/32.png) [@Daniel\_Weikert](https://forum.knime.com/u/Daniel_Weikert)\
**Post date:** [December 24, 2020, 8:03am UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/5 "2020-12-24T08:03:36Z")

</div>

you could try to use nodes like variable to table row to first get the variable value in a row and then do your comparison.  
bR

---

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [January 11, 2021, 10:56am UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/6 "2021-01-11T10:56:45Z")

</div>

Hello @KKERROXXX,

have you managed to get it working? If you still need help an example would help 😉

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![KKERROXXX](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/958977/32.png) [@KKERROXXX](https://forum.knime.com/u/KKERROXXX)\
**Post date:** [January 19, 2021, 9:15pm UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/7 "2021-01-19T21:15:18Z")

</div>

Hi @ipazin,

I have solved the problem, thank you!

Best  
Kerem,

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [July 21, 2021, 9:15am UTC](https://forum.knime.com/t/equality-of-two-flow-variables-in-rule-engine/29418/8 "2021-07-21T09:15:23Z")

</div>

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
