Gene, Could you post sample variables and perhaps an example of the perl you are trying to use? What does the array look like? What are some typical variables? (or at least analogs if you don’t want to give away content).
Mark > On Mar 26, 2020, at 2:14 PM, Harding, Gene L <glhar...@purdue.edu> wrote: > > Hi, > > I am trying to do something with a customresponse part that I cannot do > really cleanly with normal response types, but am having some trouble > evaluating the inputs. The inputs include numeric and text values as part of > a single array input. I am having to problems: > 1. I have not been able to figure out a way, in the “if” statements, to > distinguish between a zero (0) answer and a null (“”) answer. > 2. The string components evaluate to true for any text value. Only > numeric entries evaluate as false. > > My questions: > 1. Is there a way to distinguish between a 0 and a null (i.e., no) > response? > 2. Is it possible to input both numeric and string values in separate > textline inputs within one customresponse section? > > Best regards, > > Gene L. Harding, PE > Associate Professor of ECET > Purdue University > 574-520-4190 > https://polytechnic.purdue.edu/south-bend/ > > _______________________________________________ > LON-CAPA-users mailing list > LON-CAPA-users@mail.lon-capa.org > https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmail.lon-capa.org%2Fmailman%2Flistinfo%2Flon-capa-users&data=02%7C01%7Clucasm%40ohio.edu%7Ce9661e81abe94f8dee6a08d7d1b1a400%7Cf3308007477c4a70888934611817c55a%7C0%7C0%7C637208433204394095&sdata=pc8Q9TIuMr9Jnd6QU5ew62C9XjFU7XKCzY%2BcXlc40Mg%3D&reserved=0 -- Mark Lucas email: luc...@ohio.edu 252D Clippinger Lab phone: (740)597-2984 Department of Physics and Astronomy fax: (740)593-0433 Ohio University Athens, OH 45701 _______________________________________________ LON-CAPA-users mailing list LON-CAPA-users@mail.lon-capa.org http://mail.lon-capa.org/mailman/listinfo/lon-capa-users