# Simplifying syntax of If..Else. in a function node

**URL:** https://discourse.nodered.org/t/simplifying-syntax-of-if-else-in-a-function-node/67956
**Category:** General
**Tags:** function-node
**Created:** [20 September 2022 02:03 UTC](https://discourse.nodered.org/t/simplifying-syntax-of-if-else-in-a-function-node/67956 "2022-09-20T02:03:00Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)
#### Post date: [21 September 2022 09:45 UTC](https://discourse.nodered.org/t/simplifying-syntax-of-if-else-in-a-function-node/67956/10 "2022-09-21T09:45:49Z")

</div>

I got the solution here. now the table looks much better. no need for slicing to get same number of digits!

> [@Safe tab characters in template nodes?](https://discourse.nodered.org/t/safe-tab-characters-in-template-nodes/49763/2):
>
> what editor are you using? ACE or Monaco? In monaco, it may be changing your tabs to spaces automatically (friendly if thats what you want slight_smile ) You can press f1 and type tabs to ensure it inserts tabs. [vEWeD33LtY]

---

_[View the full topic](https://discourse.nodered.org/t/simplifying-syntax-of-if-else-in-a-function-node/67956)._
