Retrieve data from an attribute inside a string

achint_kumar
achint_kumar New Altair Community Member
edited November 2024 in Community Q&A
Hi All,

I am working on automating a manual process in order to make MINIMAL changes for running data for a new Wave/duraation etc. For that i am want to print a value from attribute inside a string. Please see example below:

I have assigned Year in YYYY variable as YYYY=2018
When i am using generate attribute, i am setting value  in a variable like:
if(Name == "Achint","Jan-[YYYY]")

In the above, RM is taking "Jan-[YYYY]" as string, although i want it to print Jan-2018

Looking forward to hearing from you.

Best Answer

Answers

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.