function_parameters

I have got simple function

function activ_colider (col : String): boolean 
       {
         
        if (col == "something")
           return true;
        
        }

Unfortunately, I always get warning :

“Assets/Budowa/FlyBot/FlyBot.js(150,10): BCW0023: WARNING: This method could return default value implicitly.”

I do not know what is wrong ? How looks this function properly?

function activ_colider (col : String): boolean
{

   if (col == "something")
       return true;
   else
       return false;
 }

I’ve added the situation when the argument is does not equal “something”.

You always must return a value from a function which is defined to return a value.