def METHOD_NAME(self, paramName, conditionFun= lambda x: False, defaultVal=None):
  if self.checkParam(paramName):
    x = self.getDoubleParam(paramName)
    if conditionFun(x):
      return defaultVal
    return x
  else:
    return defaultVal