Scripts: Fix check for type of fixed surface

This commit is contained in:
Shahram Najm 2021-08-02 16:41:20 +01:00
parent 0c69cc9658
commit b10f441d79
1 changed files with 4 additions and 2 deletions

View File

@ -131,8 +131,10 @@ while (<>) {
die "Error: paramID \"$paramId\" is not an integer (input row=$lcount)!\n" if (!is_integer($paramId));
die "Error: shortName \"$shortName\" has an invalid character (input row=$lcount)!\n" if ($shortName =~ /[ '"]/);
die "Error: name \"$name\" should have uppercase 1st letter or digit (input row=$lcount)!\n" if ($name !~ /^[A-Z0-9]/);
die "Error: typeOfFirstFixedSurface \"$type1\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n" if (!is_integer($type1));
die "Error: typeOfSecondFixedSurface \"$type2\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n" if (!is_integer($type2));
die "Error: typeOfFirstFixedSurface \"$type1\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n"
if ($type1 ne "" && !is_integer($type1));
die "Error: typeOfSecondFixedSurface \"$type2\" is not an integer (input row=$lcount)!\tPick a value from Code Table 4.5\n"
if ($type2 ne "" && !is_integer($type2));
$units = "~" if ($units eq "");
$cfVarName = $shortName;