Group: Forum Members
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));