Sep 16, 2003 #1 twkyoscr Technical User Aug 29, 2001 22 US Looking for simple way to do the following: @Category = if jobcode = 1063, 1009 1008 etc (about 18 job codes) then "Certified Nursing Tech" I would like to avoid writing separte if then statements and just do if in list then else. Thanks!
Looking for simple way to do the following: @Category = if jobcode = 1063, 1009 1008 etc (about 18 job codes) then "Certified Nursing Tech" I would like to avoid writing separte if then statements and just do if in list then else. Thanks!
Sep 16, 2003 #2 vidru Programmer Jul 18, 2003 2,113 US Try this: Code: @Category = if jobcode in [1063, 1009, 1008, ...] then "Certified Nursing Tech" -dave Upvote 0 Downvote
Try this: Code: @Category = if jobcode in [1063, 1009, 1008, ...] then "Certified Nursing Tech" -dave
Sep 16, 2003 Thread starter #3 twkyoscr Technical User Aug 29, 2001 22 US Thanks for your response, that is just what I'm needing. I entered the following and I am getting an error message if {A_CNT_01_STAFFINGMIX.JOBCODE} in ["001062","001009","001043",...] The error message says that the ] bracket is missing and it places the cursor in the middle of the list of job codes. Any thoughts? Upvote 0 Downvote
Thanks for your response, that is just what I'm needing. I entered the following and I am getting an error message if {A_CNT_01_STAFFINGMIX.JOBCODE} in ["001062","001009","001043",...] The error message says that the ] bracket is missing and it places the cursor in the middle of the list of job codes. Any thoughts?
Sep 16, 2003 Thread starter #4 twkyoscr Technical User Aug 29, 2001 22 US Never mind, I was missing a quote on a job code listed. THANKS AGAIN! Upvote 0 Downvote
Sep 16, 2003 #5 vidru Programmer Jul 18, 2003 2,113 US Try using single quotes instead of double quotes. -dave Upvote 0 Downvote