Flowchart Builder

Diagram workspace

Add block

Execution

File

View

DivRight width :
DivRight height :

Div gfx_holder width :
Div gfx_holder height :

Draw2d canvas width :
Draw2d canvas height :
>_

Output

Ready
Run the flowchart to see output.
Flowchart Builder

Help & input guide

What this tool does

Build an executable flowchart from READ, EXPRESSION, DECISION, WRITE, and INTERSECTION blocks. Connect the blocks from START to END, then run the whole diagram or advance one block at a time.

Build and edit

  • Click a block in the left toolbar to add it at its default position, or drag it directly to the desired position on the diagram.
  • Drag between block ports to create arrows.
  • Right-click a READ block to set its variable name.
  • Right-click EXPRESSION, DECISION, or WRITE to set its expression.
  • Use Open and Save for .save flowchart files.

Run and inspect

  • Run executes continuously; Step executes one block.
  • Reset clears variables and returns to START; Stop pauses a run.
  • The active block is highlighted. Results appear in the movable, resizable Output window.
  • DECISION arrows must be labelled YES and NO.

READ block: variable name vs. value

First, right-click the READ block and choose Variable Name. Use a JavaScript-style identifier such as age, total_1, or $price. Names cannot contain spaces or start with a number. Avoid reserved values such as Array, true, false, and null.

When the block runs, enter a value or expression in the prompt. Values use JavaScript-style syntax and are evaluated by the tool's restricted expression engine.

Wanted valueEnter in the promptNotes
Integer42Negative values also work: -7
Decimal3.14Use a dot, not a comma. Scientific notation works: 1e3
Text"Ana"Text must be inside single or double quotes
Text containing quotes"Ana said \"yes\""Escape a matching quote with \
BooleantrueUse lowercase true or false
No valuenullundefined is not supported
Number array[4, 5, 3, 6]Use square brackets and commas
Text array["Ana", "Ion"]Every text item needs quotes
Nested array[[1, 2], [3, 4]]Array elements may be arrays or expressions
Calculated valueprice * quantityPreviously read or assigned variables may be used
Array elementvalues[0]Indexes start at zero; values.length gives the size

Supported expressions

+ - * / % **, comparisons such as <= and ===, logical operators && || !, parentheses, arrays, array indexes, string indexes, .length, assignments such as sum = a + b, and values instanceof Array.

Inputs that will not work

Do not enter bare text such as Ana, comma-only lists such as 1,2,3, object literals such as {name: "Ana"}, function calls, Math.random(), browser APIs, or properties such as constructor. These are intentionally blocked.

Complete example: find the minimum

  1. Set a READ block's variable name to values.
  2. When prompted, enter [4, 5, 3, 6, 2, 7].
  3. Use EXPRESSION blocks: min = values[0] and i = 1.
  4. Use a DECISION block: i < values.length.
  5. Inside the loop, test values[i] < min, assign min = values[i] when true, then use i = i + 1.
  6. Use a WRITE block with "Minimum = " + min.

Tip: An empty prompt is invalid. Pressing Cancel leaves the READ block waiting for a value. JavaScript is used as the familiar syntax model, but only the safe operations listed above are accepted.

Multiple inputs: use one READ block per named value, or read several related values as one array. For example, read a and b separately, or read values as [10, 20].