Formatting subject ID


Author
Message
nidhi_desai
nidhi_desai
Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)Partner Member (566 reputation)
Group: Forum Members
Posts: 42, Visits: 287
I am interested in having a values.marker variable which will contain some digits as the subject ID. I need this variable's 3rd, 4th and 5th digit to indicate the subject ID. So if the subjectID is 123 values.marker should be 11123 and if subjectID is 45 values.marker should be 11045. When I use the following code using format function, I get some set of random numbers in my marker and the not the appropriate subject id. If I use another variable in the script that I had defined like values.faceDuration the formatting this way works. I am not sure why it does not work for script.subjectid and how may I resolve this?

values.marker = 11;
values.marker = concat(values.marker, format("%03d", script.subjectid));
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
nidhi_desai - 5 Years Ago
Dave - 5 Years Ago
nidhi_desai - 5 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search