Retrieve data from an attribute inside a string

User: "achint_kumar"
New Altair Community Member
Updated by Jocelyn
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.

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "oju987"
    New Altair Community Member
    Accepted Answer
    Have you tried using the variable outside the quotation marks.  Something like:

    if(Name == "Achint",concat("Jan-",[YYYY]))