3
 Followers
18
 Likes

Switch True and False in IF

Service Studio
On our radar
You always have to use the Swap Connectors because True has to go down and False to the side for the exceptions. 
Created on 11 Nov 2015
Comments (12)
erm, why?

No J, he's completely right! I'm always very annoyed that if you drop an If onto a connector it creates a False, while if you put an If onto the canvas, then draw the first connector it's a True! Totally incosistent!

As for why "down" should be True: programs are far more legible when the main flow is expressed in positive Ifs. So this:



Is far better than this:



Agreed 100%! I virtually *always* need to "Swap" an IF after putting it in the workflow in the middle of an existing connector. That's a sign that the current behavior is wrong.

J.Ja
Meh, Yes, the mainflow should go down. No, it should not be always the true path. I like to have ifs logical , not infested with not's.
J, that's exactly the point. It seems though your logic isn't mine :)))
Merged this idea with 'When dropping an IF tool in a flow make the TRUE connector the default instead of False' (created on 13 Oct 2018 13:38:27 by Tiago Bernardo)

Hello everyone!

Because I use the pattern of developing the flow vertically for the happy/positive condition, like "IsValid" or "IsSuccess" or "Customer found", I would like the platform, when dropping an IF tool in a flow to make the TRUE connector the default instead of the False.

Also, when deleting just an IF tool from the flow the connector that should stay connected should be the TRUE and not the False.

This all is also consistent to the fact that when you have an isolated IF tool not in a flow and you want to make the first connector, that first connector is the TRUE.

You can see an example of all of this in this short video that I made: https://www.screencast.com/t/4Vl2vGyrqYT

Cheers,

Tiago Bernardo


PS: I had this Idea for a long time but it all came again to surface after seeing the AI demo at NextStep 2018 in Amsterdam where in the demo the person had for 2 times click the "swap connectors" in the 2 IF tools that were added to the flow!



This comment was:
- originally posted on idea 'When dropping an IF tool in a flow make the TRUE connector the default instead of False' (created on 13 Oct 2018 by Tiago Bernardo)
- merged to idea 'Switch True and False in IF' on 13 Oct 2018 22:36:45 by Vasco Pessanha

As an additional remark, when dragging the first connector from an If, it's the True that's dragged, so the behaviour between drag (arrow) and drop (the Statement) is inconsistent as well.

Merged this idea with 'Vertical connector of an IF node should default to True' (created on 14 Mar 2019 09:26:47 by Nordin Ahdi)

In the light of the best practice to keep Action Flows vertical and tidy, I think it makes more sense to default the vertical connector of an IF node to True.

Example 1:

Example 2:


Currently, when you drag an IF node to your canvas where there is already an existing connection towards the End node, it defaults the vertical connector of the IF node to False (see Example 1). 

Even when there is already an IF node present in the flow where you swapped the connectors (see IF node "Certicate Valid?" in Example 2), the next IF you drag to the connected flow still vertically defaults to False.

I find myself, and I'm sure there are other developers, to have to swap the connectors of an IF a lot as it makes more sense to me that a logical vertical flow should have a green light (True) and if something is wrong and there's a red flag the flow should move sideways (False).

Let me know what you guys think.



This comment was:
- originally posted on idea 'Vertical connector of an IF node should default to True' (created on 14 Mar 2019 by Nordin Ahdi)
- merged to idea 'Switch True and False in IF' on 18 Mar 2019 09:35:26 by Vasco Pessanha

I totally agree with you, Nordin!

I like to make the vertical flow the happy path scenario, so I find myself swapping connectors 99% of the times I drag & drop an If node onto the canvas. The default branch should be the True one.


Cheers!



This comment was:
- originally posted on idea 'Vertical connector of an IF node should default to True' (created on 14 Mar 2019 by Nordin Ahdi)
- merged to idea 'Switch True and False in IF' on 18 Mar 2019 09:35:26 by Vasco Pessanha

Thanks for the support Ricardo :-). 

Let’s see what other community members have to say.



This comment was:
- originally posted on idea 'Vertical connector of an IF node should default to True' (created on 14 Mar 2019 by Nordin Ahdi)
- merged to idea 'Switch True and False in IF' on 18 Mar 2019 09:35:26 by Vasco Pessanha
views
343
Followers
3