TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • TestNG
  • Tools
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Flowgorithm

Make Decisions in Flowgorithm Flowchart

Flowgorithm

Overview

The If shape( diamond shape) is used to make decisions in a Flowgorithm flowchart. The If shape divides the flowchart control into two branches. One branch if the condition is True and the other branch if the condition is False.

The If symbol checks the expression and then executes one of the branches based on the conditional boolean expression. We can provide the conditional expression in the If diamond symbol.

If Shape

The If shape is also called as Control structure. We can control the program flow using this structure. The If shape evaluates the conditional boolean expression and based on the result one of the True or False branch is executed.

 

If shape Flowgorithm

To add the If shape left click or double click on the flowchart arrow line. Choose the If shape. Double click on the If shape to provide the boolean expression.

Example

A student is considered as “Pass” if the score in a subject is >= 40. Else the student is considered as “Fail”.

Let’s design a simple flowchart based on the If control structure to ask for the student’s score and print the result. ( For simplicity, assume the input is within the interval [0,100]).

Steps to create:

  • Launch Flowgorithm Flowchart tool.
  • Declare a variable : score
  • Add an Output symbol for the user prompt.
  • Add an If Control shape.
  • Double click on the If shape and add the expression :
  • score >= 40

 

Boolean Expression in If

 

  • Add an Output statement to print : PASS in the True branch.
  • Add an Output statement to print : FAIL in the False branch.

 

 

If Example Flowchart

 

Sample Output

Execute the flowchart. Click on the green play button on the Toolbar.

 

If flowchart sample output

 

Flowgorithm Tutorials Link:

https://www.testingdocs.com/flowgorithm-flowchart-tutorial/

 

Related Posts

Flowchart Style Flowgorithm

Flowgorithm /

Flowgorithm Tool Features

Control Panel

Flowgorithm /

Uninstall Flowgorithm on Windows

Source Code Generator Flowgorithm

Flowgorithm /

Source Code Generator Tool in Flowgorithm

Populate Array Flowgorithm Flowchart

Flowgorithm /

Populate Array with User Input in Flowchart

Flowgorithm /

Recursion in Flowgorithm Flowchart

‹ Getting User Input in Flowgorithm Flowchart› Built-in Functions in Flowgorithm flowchart

Recent Posts

  • Antivirus Products for Windows 11 PC
  • Install CodeBlocks IDE on Windows 11
  • Location Privacy Settings on Windows
  • Windows 11 Virus & Threat Protection
  • Download & Install Python on Windows 11
  • Cumulative Update for Windows 11 Version
  • Test execution speed in Selenium IDE
  • Check Windows 11 Free Upgrade
  • Download IntelliJ IDE on Windows 11
  • New MySQL Connection in Workbench

Back to Top

Automation Tutorials

  • JBehave Tutorial
  • Selenium Tutorial
  • TestNG Tutorial
  • JUnit Tutorial

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com

Go to mobile version