Multi-line expression in Expression Editor

Hi, how do I key in multi-line expressions in the Expression Editor? E.g. strings that require many concatenations that are very hard to read if placed all in one line

Hi @DEATHFISH

Try to use space and underline as end of pervious line, like below.
If(a>4,“4”, _
If(a>3,“3”, _
If(a>2,“2”, _
If(a>1,“1”, “0”))))

If you have one string is too long, use & to express it in multi-line as follows.
“UiPath” _
& “Studio”

Sometimes, underline can be omitted.

1 Like