Retrieve data from an attribute inside a string
Contributor II
         
           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 asYYYY=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 printJan-2018
Looking forward to hearing from you.
          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 asYYYY=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 printJan-2018
Looking forward to hearing from you.
           Tagged:
          
          
           0
           
          
         Best Answer
- 
        
oju987
           MemberPosts:4
Contributor II
          Have you tried using the variable outside the quotation marks. Something like:
if(Name == "Achint",concat("Jan-",[YYYY]))
5 

