Condition else on input value to trigger specific workflow

Hello,

I have a form with let’s say 2 input : Name and Age, then a button “Validate”.

I want the following workflow :

1/ If Name = “Daniel” and Age = “20”, then when click on the “Validate” button go to page A.

2/ If Name = “Samuel”, then when click on the “Validate” button go to page B.

3/ ELSE (ie. for all other cases), when click on the “Validate” button go to page C.

The 1 and 2 cases are ok with a “only when” condition, but I’m struggling with the 3…

Any tips ?

Thank you !!!

I’ve tried something base on custom state :

I’ve created a custom state for my page called “NavigateTo” : type = number, default value = 0.

1/ For this case, I set the state NavigateTo to 1.

2/ For this case, I set the state NavigateTo to 2.

3/ I write the “else” case like that : pagename’s NavigateTo is not 1 and pagename’s NavigateTo is not 2 .

=> It doesn’t seem to work unfortunately…

It works sometimes but some other times not, I suspect something linked to the order in which the 3 cases are executed ?

I will be glad if you have any tips or direction to help me, thank you !