Site icon TestingDocs.com

Nested decision structures in RAPTOR flowchart

Overview

In this tutorial, we will learn the steps to build Nested decision structures in Raptor flowcharts.
In some complex scenarios, we may take a number of decisions. Nested decision structure is nesting
one decision blocks inside another decision block to take more than one decision in the flowchart.

Nested control structures let us test more than one condition where one condition is nested inside another.

Problem statement:

We use nested decision structures to model the below example flowchart.

Let us consider a sample bank loan scenario. To determine if a customer qualifies for a loan. The bank has two criteria

Bank Loan Scenario

S No Criteria
1 The salary of the employee should be >= 20000
2 The service of the employee should be >= 3 years.

 

 

We will model the flowchart to know if the bank employee is eligible for a loan or not using nested control structures.

Flowchart

Flowchart Output

Sample flowchart run output:

Employee Name=Sam Sparks
Employee Salary $=25000
Employee service=2
Sorry! Not qualified for a loan
—-Run complete. 11 symbols evaluated.—-
Employee Name=Emma Watson
Employee Salary $=35000
Employee service=4.5000
Congratulations! Emma Watson is qualified for a loan
—-Run complete. 11 symbols evaluated.—-

 

 

 

Raptor Tutorials on this website can be found at:

https://www.testingdocs.com/raptor-a-flowchart-tool/

RAPTOR official website: https://raptor.martincarlisle.com/

Exit mobile version