Hi all,
I have a code set that I want to define in groups. The groups should be a set of geographical regions (South, West, North, East), thus I have generated South=0, West=0 etc.
If X001 to X003 is present in code 1-6 I would like to replace South=1 . If X004 to X005 is present in code 1-6 I would like to replace West=1. If T004 to T005 is present in code 1-6 I would like to replace East=1 etc.
Is there an easy way to do this with a loop?
input byte id str4(code1 code2 code3 code4 code5 code6) 1 "X001" "X001""X003" "" 2 "" "X001" "X002" "X001" "" "" 3 "X004" "" "X001" "" "" "X004" 4 "" "" "" "X004" "X005" "X004" 5 "T001" "T004" "T005" "T004" "T004" "T002" end Thank you very much in advance!
I have a code set that I want to define in groups. The groups should be a set of geographical regions (South, West, North, East), thus I have generated South=0, West=0 etc.
If X001 to X003 is present in code 1-6 I would like to replace South=1 . If X004 to X005 is present in code 1-6 I would like to replace West=1. If T004 to T005 is present in code 1-6 I would like to replace East=1 etc.
Is there an easy way to do this with a loop?
input byte id str4(code1 code2 code3 code4 code5 code6) 1 "X001" "X001""X003" "" 2 "" "X001" "X002" "X001" "" "" 3 "X004" "" "X001" "" "" "X004" 4 "" "" "" "X004" "X005" "X004" 5 "T001" "T004" "T005" "T004" "T004" "T002" end Thank you very much in advance!
Comment