Is there anyway to have an inline if within iCustom?

 

Hi,

Don't know if I'm trying to push the boundaries of MQL5 here, but is there anyway to have an inline if within iCustom to determine the correct type for the parameter in MQL5?

return iCustom(Symbol(),Period(),"Testing\\"+customInputs[1],CheckIfNumeric(paramValues[0])?StringToInteger(paramValues[0]):paramValues[0]);

paramValues is a string array.

CheckIfNumeric looks like this:

bool CheckIfNumeric(string value)
  {
   int char1=StringGetCharacter(value,0);
   if(char1>=48 && char1<=57)
      return true;
   return false;
  }

Thanks for any advice in advance.


Edit: I should probably change 'StringToInteger' to 'StringToDouble'.

Reason: