Blog Posts Decision / Rules Management

Alternatives to ‘If-Then’ Statements

Blog: Decision Management Community

The Medium’s article “5 Alternatives to ‘If’ Statements for Conditional Branching” states: “There’s some thinking in the programming community that if should be considered harmful or a code smell. Regardless of the validity of this claim, there may be cases where if isn’t the best approach to branching, or where branching should be avoided altogether“. The article offers six programming alternatives to if...else.
Probably our readers will add business rules as another (much better!) alternative. It actually points once again how differently programmers and non-programmers would represent the same business logic. You can find a good example in this old post “Different Decision Tables for a Very Simple Use Case“.

Leave a Comment

Get the BPI Web Feed

Using the HTML code below, you can display this Business Process Incubator page content with the current filter and sorting inside your web site for FREE.

Copy/Paste this code in your website html code:

<iframe src="https://www.businessprocessincubator.com/content/alternatives-to-if-then-statements/?feed=html" frameborder="0" scrolling="auto" width="100%" height="700">

Customizing your BPI Web Feed

You can click on the Get the BPI Web Feed link on any of our page to create the best possible feed for your site. Here are a few tips to customize your BPI Web Feed.

Customizing the Content Filter
On any page, you can add filter criteria using the MORE FILTERS interface:

Customizing the Content Filter

Customizing the Content Sorting
Clicking on the sorting options will also change the way your BPI Web Feed will be ordered on your site:

Get the BPI Web Feed

Some integration examples

BPMN.org

XPDL.org

×