# Perform mathematical computation with string values

**URL:** <https://forum.knime.com/t/perform-mathematical-computation-with-string-values/71947>\
**Category:** KNIME Analytics Platform\
**Created:** [August 23, 2023, 9:46am UTC](https://forum.knime.com/t/perform-mathematical-computation-with-string-values/71947 "2023-08-23T09:46:07Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [August 23, 2023, 4:59pm UTC](https://forum.knime.com/t/perform-mathematical-computation-with-string-values/71947/4 "2023-08-23T16:59:45Z")

</div>

@ajisafeadeoye you might want to try something like this?

```auto
if ((column("column A") > 2*column("column B")) && equals(column("column C"), "Student"))
{"Great"}
else if (1 == 2)
{"Not Great"}
else {"Something Else"}

```

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/d/5/d54474c7c895fc19473f3556037986785b2c3962.png)

> **[Column Expressions - if, then else – mlauber71](https://hub.knime.com/mlauber71/spaces/Forum/latest/2023/kn_forum_71947_column_expression_double~4onIaAYnI0TeWbn3)**
>
> Column Expressions - if, then else KNIME — Column Expressions https://medium.com/p/f87c8fceeec By Willem Lottering KNIME Expressions Nodes Introduction https:/…

[kn\_forum\_71947\_column\_expression\_double.knwf](https://forum.knime.com/uploads/short-url/9lSWOzzyFMKJZgTV7Y6deg6QSOj.knwf) (8.7 KB)

---

_[View the full topic](https://forum.knime.com/t/perform-mathematical-computation-with-string-values/71947)._
