All templates
Template·Text & Data

Conditional Logic Engine

Teaching example for control flow: one number drives two independent decision structures built entirely from If nodes — there is no dedicated numeric-compare or boolean-logic node in NodeTool, so this shows the actual pattern: PadText + Compare + Equals turn the number into a boolean, then pairs of If nodes sharing one condition (each holding its own value, taking the opposite branch) act as the ternary select and OR you'd otherwise reach for. No LLM calls.

Conditional Logic Engine — example output from the NodeTool workflow

The workflow

Workflow Editor
Note
Note
Note
Prompt
Gt 100
Lt 50
Combined
## Conditional Logic Decision Result **Input Value:** {{ value }} **Condition Checks:** - Greater than 100? {{ gt_100 }} - Less than 50? {{…
Integer Input
Code
Text
Code
A
Code
A
Code
A
Code
A
If
Condition
If True
If
Condition
If False
Prompt
🔴 HIGH VALUE: {{ value }} is greater than 100. Priority processing engaged.
If
Condition
If True
If
Condition
If False
Prompt
🔵 LOW VALUE: {{ value }} is less than 50. Standard processing applied.
Prompt
🟡 MEDIUM VALUE: {{ value }} is between 50 and 100. Balanced processing selected.
Output
Code
Output
Output
Output

Nodes in this workflow

19 nodes · 5 types
  • Code
    nodetool.code.Code
    ×6
  • If
    nodetool.control.If
    ×4
  • Output
    nodetool.output.Output
    ×4
  • Prompt
    nodetool.text.Prompt
    ×4
  • Integer Input
    nodetool.input.IntegerInput

How to run it

  1. 01

    Download NodeTool Studio

    Install the free desktop app for macOS, Windows, or Linux. It runs on your own machine, no account required to start.

  2. 02

    Open the Conditional Logic Engine template

    Browse the built-in template library inside Studio and open this workflow onto the canvas. Every node is already wired up.

  3. 03

    Add your keys

    Connect any model providers this workflow calls with your own API keys, or point it at local models.

  4. 04

    Run and remix

    Hit Run to execute the graph and watch results stream in. Swap models, edit prompts, or rewire nodes to make it yours.

Run Conditional Logic Engine on your machine

Free, open source, and yours to run. Download Studio, open the template, and run it with your own keys.