Skip to main content
Question

Multiple conditions for conditional user parameter

  • March 18, 2025
  • 3 replies
  • 70 views

albinepro
Supporter
Forum|alt.badge.img+7

Is there any option how to set multiple condition for visibility of user parameter? I need some parameters to be available for two choices of another parameter. I could define another connection parameter but i have to use it in same readers and writers of workspace.

- is there a chance for some workaround?
I can’t merge these two choices, because there another flow for each one of these two.
I know thers new feature in FME 2025, but we recently upgraded to last major 2024 version. Probably we’ll be waiting for another release of 2025.

3 replies

geomancer
Evangelist
Forum|alt.badge.img+59
  • Evangelist
  • March 18, 2025

This is possible in FME 2025.0, where they call it a Compound Condition.

For more information see this video: 

 


albinepro
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • March 18, 2025

This is possible in FME 2025.0, where they call it a Compound Condition.

For more information see this video: 

 

Hi, Im aware of this new feature. But theres no chance of upgrading any soon. I was looking for some proofed workaround for FME 2024 and earlier.


albinepro
Supporter
Forum|alt.badge.img+7
  • Author
  • Supporter
  • March 24, 2025

I have tried also a workarounf with scripted parameter that’s based on the first one:
 

import fme

if fme.macroValues['CUSTOMER'] == 'AGIS':
return 'AGIS'
elif fme.macroValues['CUSTOMER'] == 'RSD':
return 'RSD'
else:
return 'IPR'

But the conditional visible parameters are not reacting, i.e. appearing depending on the scripted one.