I have the following vectors that getting different entries based on another array.

* `PIP_ID`
* `SAMPLE_TYPE_IDS`
* `MPX_KIT_IDS`

Depending on the content of those I am creating different files using `if` statements/rules. For example:

```
if [ $PIP_ID == 8 ]; then   
    EXTENSION="ATLAS_"
fi
if [[ $SAMPLE_TYPE_IDS == 81 ]] || [[ $SAMPLE_TYPE_IDS == 86 ]]; then
    EXTENSION="SmartSeq3_"
fi
if [[ $SAMPLE_TYPE_IDS == 61 ]] || [[ $SAMPLE_TYPE_IDS == 72 ]] || [[ $SAMPLE_TYPE_IDS == 102]] || [[ $SAMPLE_TYPE_IDS == 84 ]] ; then  
    EXTENSION="scRNAv3_"
fi
if ([[ $MPX_KIT_IDS == 89 ]] || [[ $MPX_KIT_IDS == 91 ]] || [[ $MPX_KIT_IDS ==  92 ]] || [[ $MPX_KIT_IDS == 93 ]]) && [[ SAMPLE_TYPE_IDS != 105 ]] ; then
    EXTENSION="AGENTtrim_"
fi
if [[ $MPX_KIT_IDS == 17 ]] || [[ $MPX_KIT_IDS == 27 ]] || [[ $MPX_KIT_IDS == 53 ]]; then   
    EXTENSION="miRNA_"
        fi

```

Note that the one that creates the `AGENTtrim_` has multiple OR combined with && statements grouped with parenthesis.

How can I turn those into a more simpler, more elegant solution using `case`? I do not know how to combine all the 3 variables into one, since the one that creates the `AGENTtrim_` gets info from 2 independent variables.