Diagram
  • Introduction
  • Get Started
    • Hello World
    • Connecting to a DB
    • From a template
  • Concepts
    • Endpoints
    • Algorithm
  • Nodes
    • Bcrypt
    • Code
    • Constant
    • Database
    • EasyDB
    • Firestore
    • If / Then
    • Request
    • Response
    • JWT
    • Mapper
    • MongoDB
    • Stripe
    • Webhook
  • Templates
    • Login
    • Register
    • Get User
  • Resources
    • Dashboard
    • Contact
    • FAQs
Powered by GitBook
On this page
  • General
  • Input
  • Output
  • Use Cases

Was this helpful?

  1. Nodes

If / Then

General

The If / Then node checks a condition and proceeds with the "Then" port if it's true or the "Else" port if it's false. It supports ===, ==, !==, !=, >=, >, <= and < operators and the typeof and not typeof functions. Also, any of the two parameters or both can be set to a constant value.

Input

  • Param 1: (optional) Receives an Object, String, Number or Boolean to check against the condition. This value is optional if the parameter is set to a constant value.

  • Param 1: (optional) Receives an Object, String, Number or Boolean to check against the condition. This value is optional if the parameter is set to a constant value.

Output

  • Then: Triggers if the condition is true.

  • Else: Triggers if the condition is false.

Use Cases

Return a static response based on the input.

  • Request (Get) ➡ If / Then ➡ Response (200)

PreviousFirestoreNextRequest

Last updated 3 years ago

Was this helpful?