Use data bind a value in a variable

Hi eveyrone.
Ejoying using wappler to build some amazing apps. I’m usually slow to ask but this has been bugging me and i can’t seem to find a solution.

I want to concatenate two dynamic values into a third value for databinding.
i.e.
{{val1}}.{{val2}} into something like {{val1.{{val2}}}}

The reason being val2 reads the browser language and then on concatenating with val1 to create the final value, loads the correct value from a json file.

A sort of dynamically assembled value or composite variable.

I have searched this forum extensively as well as Javascript documents but can’t seem to find the right thing…
Can anyone help please?
Many thanks;

Hello,
You can concatenate two values like:

{{var1 + var2}}

thanks for a speedy reply!
I have updated to explain a bit better as I saw I wasn’t very clear.
I’m thinking more like {{val1.{{val2}}}}

Is this possible?

1 Like

I think you want to get a property with the value val2, use: {{val1[val2]}}.

2 Likes

WORKS PERFECTLY.
Thanks ALOT.
Using this opportunity to congratulate the Wappler team. I am an immensely happy customer after just 2 months doing some amazingly complex things.
Big up!!

1 Like