Question: I did a script with an `if` that takes several hundred lines because it lists all the possibilities, I would like to know if it is possible to reduce its size to only a few lines because I find myself lost in all these lines. Here is an example of the code: 

```
if [ "$player_position" = 1 ]; then
  echo "Player is on the tile 1"
elif [ "$player_position" = 2 ]; then
  echo "Player is on the tile 2"
elif [ "$player_position" = 3 ]; then
  echo "Player is on the tile 3"
fi

```

And so on. I want to get rid all the `elif` but keep all the possibilities 

PS : Each tile has a name that is in a variable like "tile\_1\_name" that number also has to change

Answer: 
```
if  [ "$player_position" -ge 1 -a "$player_position" -le 3 ]; then
  echo "Player is on the tile $player_position"
fi

```

Explanation:

* `-ge`: greater than or equal
* `-le`: less than or equal
* `-a`: logical AND
You need to do it via cycle.
For example:

```
player_position=0
tile_1_name=0

for (( i=0; i<=100; i++ ))
do
     if [ "$player_position" == $i ];then
         echo "Player is on the tile $i"
         echo $tile_1_name
     fi
 tile_1_name+=1
 done

```