osc_generator/parameter_declarations.py
def check_existing_parameters(self):
        """
        Checks attribute tables for existing parameters with the same name

        Returns:
            False: if no existing parameters are found
            True: if there is an existing parameter
        """
        query = f'"Parameter Name" = \'{self.param_name.text()}\''
        feature_request = QgsFeatureRequest().setFilterExpression(query)
        features = self._param_layer.getFeatures(feature_request)
        count = len(list(features))

        if count == 0:
            return False
        else:
            return True

        Checks attribute tables for existing parameters with the same name

        Returns:
            False: if no existing parameters are found
            True: if there is an existing parameter
        
Checks attribute tables for existing parameters with the same name
Checks attribute tables for existing parameters with the same name
def check_existing_parameters(self):
        query = f'"Parameter Name" = \'{self.param_name.text()}\''
        feature_request = QgsFeatureRequest().setFilterExpression(query)
        features = self._param_layer.getFeatures(feature_request)
        count = len(list(features))
        if count == 0:
            return False
        else:
            return True
def check_existing_parameters ( self ) : query = f'"Parameter Name" = \'{self.param_name.text()}\'' feature_request = QgsFeatureRequest ( ) . setFilterExpression ( query ) features = self . _param_layer . getFeatures ( feature_request ) count = len ( list ( features ) ) if count == 0 : return False else : return True
Checks attribute tables for existing parameters with the same name
Checks attribute tables for existing parameters with the same name
"""
        Checks attribute tables for existing parameters with the same name

        Returns:
            False: if no existing parameters are found
            True: if there is an existing parameter
        """
if no existing parameters are found
True: if there is an existing parameter
if no existing parameters are found True : if there is an existing parameter
False
self