Skip to main content
Solved

Combining expression values

  • November 30, 2022
  • 5 replies
  • 332 views

LucasHansson
Skilled Expert
Forum|alt.badge.img+5

Hello,

I’m trying to combine to strings in the expression builder to one string. I’m unable to get this to work with liquid filters.

I’m probably missing something. Does anyone have a good idea as how to do this? Essentially i want E3=E1+E2.

Best answer by LucasHansson

The issue was resolved by using double quotes! ''{{E1.result}},{{E2.result}}''

View original
Did this topic help you find an answer to your question?

5 replies

vishal.abraham
Skilled Expert
Forum|alt.badge.img+3

Hey Lucas, 

 

This should be pretty straight forward. If you build out another expression you can just place {{ E1.result }}{{ E2.result }} together. Is this not working?


LucasHansson
Skilled Expert
Forum|alt.badge.img+5
  • Author
  • Skilled Expert
  • 18 replies
  • December 1, 2022
vishal.abraham wrote:

Hey Lucas, 

 

This should be pretty straight forward. If you build out another expression you can just place {{ E1.result }}{{ E2.result }} together. Is this not working?

 

Hello Vishal,

 

This was my thought aswell. I tried this but got an error:

 “Invalid Syntax - Invalid return type for expression”

:(

Best regards,
Lucas


vishal.abraham
Skilled Expert
Forum|alt.badge.img+3

Ahh got it.. For string outputs you can use quotes to enclose it.

 

'{{ E1.result }}{{ E2.result }}' that helps distinguish regular strings from numbers and boolean outputs. 


LucasHansson
Skilled Expert
Forum|alt.badge.img+5
  • Author
  • Skilled Expert
  • 18 replies
  • December 1, 2022
vishal.abraham wrote:

Ahh got it.. For string outputs you can use quotes to enclose it.

 

'{{ E1.result }}{{ E2.result }}' that helps distinguish regular strings from numbers and boolean outputs. 

Thanks for the suggestion Vishal,

Unfortunately it still returns the error :(

However, when I test the expression it gives me the wished result.. Strange!

 


LucasHansson
Skilled Expert
Forum|alt.badge.img+5
  • Author
  • Skilled Expert
  • 18 replies
  • Answer
  • December 1, 2022

The issue was resolved by using double quotes! ''{{E1.result}},{{E2.result}}''


Reply