case "${RET}" in
0)
RET_STR="Object is not mapped";;
1)
RET_STR="Operation Internal Error";;
2)
RET_STR="Operation Invalid Arguments";;
3)
RET_STR="Object is mapped";;
4)
RET_STR="Path not found";;
esac
local RET_ARR=("Object is not mapped" "Operation Internal Error" "Operation Invalid Arguments" "Object is mapped" "Path not found")
...
echo "bla bla.. ret is [${RET}] - ${RET_ARR[${RET}]}"