This page has no translation to Deutsch yet. The original English version is below. If you’d like to help, great! See how to translate a documentation page in the contribution guide.
Note This is a web-version of a tutorial chapter embedded right into the XOD IDE. To get a better learning experience we recommend to install the desktop IDE or start the browser-based IDE, and you’ll see the same tutorial there.

Creating a New Patch

Screenshot of 301-create-new-patch

Here is a patch that checks if a number is between 0.4 and 0.7. Let’s make it reusable by converting into a node that takes three numbers and outputs a boolean. The first number is the one we want to check and the other two are boundaries instead of the hard-coded 0.4 and 0.7.

⚠️ Before you proceed, remember the location of this chapter in the Project Browser to come back after you complete the instructions. Keeping the track might be easier if you open this part of the tutorial in a web-browser.

Instructions #

  1. Select less, greater, and nor nodes and copy them to the clipboard.
  2. Select File -> New Patch… from the main menu.
  3. Choose a name (between is a nice one).
  4. Your new patch will open in a new tab. Paste the nodes that you copied earlier there.

For the rest of this part of the tutorial we’ll evolve the node chapter after the chapter and effectively create many versions of it with incremental improvements. We recommend to mirror the improvements to the sole patch you created just now.

Found a typo or mistake? Want to improve the text? Edit this page on GitHub and open a pull request. If you have a complex proposal or you want to discuss the content, feel free to start a new thread on XOD forum.