Hub
Pricing About
WorkflowWorkflow

Switch - Examples of how to use Case When

PythonSwitchIfThenElse
+2
mlauber71 profile image
Draft Latest edits on 
Nov 15, 2024 1:39 PM
Drag & drop
Like
Download workflow
Workflow preview
Three ways to handle combination of Flow variables from Python and If switches

In one Python environment a Flow Variable for the usage in KNIME will be filled and the results will be used for two If switches.

if($${Ivar_py_value_switch}$$ >0) {return "bottom";}
else {return "top";}

External resources

  • META: A meta collection about Loops, Switches, Paths and Flow Variables in KNIME (and some ZIP files)
  • DB SQLite - switch datase source based on a case when selection
  • Vernalis KNIME Nodes
  • Meta Collection about KNIME and Python
  • forum entry (27913)
Loading deploymentsLoading ad hoc jobs

Used extensions & nodes

Created with KNIME Analytics Platform version 5.3.3
  • Go to item
    KNIME Base nodesTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.2

    knime
  • Go to item
    KNIME Excel SupportTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.2

    knime
  • Go to item
    KNIME JavasnippetTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.0

    knime
  • Go to item
    KNIME Python IntegrationTrusted extension

    KNIME AG, Zurich, Switzerland

    Version 5.3.2

    knime

Legal

By using or downloading the workflow, you agree to our terms and conditions.

KNIME
Open for Innovation

KNIME AG
Talacker 50
8001 Zurich, Switzerland
  • Software
  • Getting started
  • Documentation
  • Courses + Certification
  • Solutions
  • KNIME Hub
  • KNIME Forum
  • Blog
  • Events
  • Partner
  • Developers
  • KNIME Home
  • Careers
  • Contact us
Download KNIME Analytics Platform Read more about KNIME Business Hub
© 2025 KNIME AG. All rights reserved.
  • Trademarks
  • Imprint
  • Privacy
  • Terms & Conditions
  • Data Processing Agreement
  • Credits