<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi Nicolas,<br>
    I don't know if it is the intended behaviour, anyway it seems to me
    parameterAsEnumString and parameterAsEnumStrings return the correct
    value when <code><span class="n">usesStaticStrings</span> is set to
      True, while parameterAsEnum and parameterAsEnums when </code><code><span
        class="n">usesStaticStrings</span> is set to False.<br>
      <br>
      In addition, the parameter defaultValue should be set to a single
      value and not to a list if </code><code><span class="n">allowMultiple
        is set to </span><span class="o"></span><span class="bp">False</span>.<br>
      <br>
      Best regards.<br>
      <br>
      Andrea Giudiceandrea<br>
    </code><br>
    <div class="moz-cite-prefix">Il 24/02/2023 14:11, Nicolas Godet via
      QGIS-Developer ha scritto:<br>
    </div>
    <blockquote type="cite"
cite="mid:PA4P190MB11663DEE80AD2854AD6290B88FA89@PA4P190MB1166.EURP190.PROD.OUTLOOK.COM">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
      <div style="font-family: Calibri, Helvetica, sans-serif;
        font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255,
        255, 255);" class="elementToProof ContentPasted0 ContentPasted1">
        I noticed in a custom alg that `parameterAsEnumStrings` always
        return the default value set in QgsProcessingParameterEnum.</div>
    </blockquote>
  </body>
</html>