In QGIS geoprocessing scripts, default values must be provided for input numbers and strings, according to http://docs.qgis.org/2.8/en/docs/user_manual/processing/console.html#creating-scripts-and-running-them-from-the-toolbox like:
##mynumer=number 3.1415329
Since I often have to process layers with all the same field names (unfortunately not assurable in any case), I would like to pass a default value for a field name to the geoprocessing script, following a logic like 'take the default field name if it exists in the layer referred to, otherwise let the user select one'.
Is this possible somehow, perhaps with a bit of python?