Check if the item "length_type" is class integer and if all values are 1 or 2.

check_length_type(length_type)

Arguments

length_type

Object of class integer expected. Length type identification, 1 for LD1 and 2 for LF.