Adobe Fusion Switch Module | Community
Skip to main content
New Participant
October 26, 2022
Solved

Adobe Fusion Switch Module

  • October 26, 2022
  • 1 reply
  • 940 views

I am attempting to use the Adobe Fusion switch module. I feel like it is not working properly but the documentation on how it works is pretty lacking.

 

If I have a Case that evaluates to true; I assume the output of the switch module would be the output for that case. However it seems my switch module always outputs the else regardless of whether there is a case that is evaluating as true. Can anyone explain how this is supposed to work?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Pete-Worth

The case and pattern needs to match like for like so the switch is looking specifically for 'Email - Pillar' in the patterns. The Input that the switch is assessing is the variable, not the cases.

 

Each case is 'If Pattern=Input; Output'. The switch is seeing the word 'true' or 'false' in your example to compare to 'Email - Pillar'.

 

Example in images assessing the day of the week.

 

1 reply

Pete-Worth
Pete-WorthAccepted solution
Employee
October 27, 2022

The case and pattern needs to match like for like so the switch is looking specifically for 'Email - Pillar' in the patterns. The Input that the switch is assessing is the variable, not the cases.

 

Each case is 'If Pattern=Input; Output'. The switch is seeing the word 'true' or 'false' in your example to compare to 'Email - Pillar'.

 

Example in images assessing the day of the week.

 

GrahamSp1Author
New Participant
November 2, 2022

Thanks for the reply. I did come to this realization shortly after I posted. I was conflating the true false result with the outcome of the pattern match. The module expects the result of the case to be a pattern. To solve my issue I used an if statement that when evaluated to true outputs the desired pattern instead of true/false. Not the most elegant method, but I could not find another way to do this in a single module.