Boolean Logic & Comparisons

Gain a deeper understanding into the use of Boolean logic and comparison operators to boost your Jinja efficiency within your Rewst automation projects.

Sign up for our LIVE sessions Wednesdays @ 3pm Eastern on Calendly.

Course Overview

Boolean Logic & Comparisons dives into the fundamentals and applications of Boolean Logic within the context of Jinja and workflow automation in Rewst. This course provides a deep understanding of how Boolean expressions dictate the logical flow in code execution and task management, emphasizing their role in decision-making processes in automated workflows.

When you've completed this training, don't forget to get credit!

Watch the video and follow along

Learning Objectives:

  • Master Boolean Logic: Understand and apply Boolean operators and expressions to control workflow logic in Jinja.

  • Leverage Comparisons: Utilize Jinja's comparison operators to enhance decision-making and workflow conditions.

  • Simplify and Optimize Code: Learn strategies for creating cleaner, more efficient code using truthy and falsy values, minimizing redundancy, and optimizing logical evaluations.

  • Enhance Workflow Readability: Improve the readability and maintainability of workflow scripts through effective logic grouping and the use of implicit and explicit conversions.

Follow Along:

Part 1: Jinja Live Editor

Step 1: Access the Jinja Live Editor

Here are some important keyboard shortcuts you can use throughout

  1. Remove comments

    • Windows: ctrl + /

    • OSX: cmd + /

  2. Render code

    • Windows: ctrl + enter

    • OSX: cmd + enter

Step 2: Comment/Uncomment Code
  1. Comment/Uncomment Code and see the behavior between the WET and DRY examples.

Last updated