I am trying to find a solution that does not involve using a if-else condition my current code: if ...
stackoverflow.com