Basic programming concepts

Learn how workflows make decisions and process data systematically.

Module overview

🥚 In Rewst, workflows need to "think" and adapt to different scenarios, and that's where programming concepts like if statements and for loops come in. In this module, you’ll explore how workflows can make decisions and process lists of data—laying the groundwork for building more dynamic, flexible automations.

Video (3:21 minutes)

Module summary

If statements – making decisions

An if statement allows a workflow to make decisions based on conditions.

Example:

  • If a support ticket is marked "urgent," then send a priority notification.This helps workflows adapt to different situations, taking specific actions when certain conditions are met.

For loops – processing lists

A for loop goes through a list, one item at a time.

Example:

  • For each ticket in a list, check its status.

For loops let workflows handle multiple items efficiently without needing to manually check each one.

Putting it together – smart workflows

If statements and for loops often work together to create dynamic workflows.

Example:

  • For each customer in a list, check if they have an overdue balance.

  • If their balance is overdue, follow up.

This combination makes workflows more adaptable, efficient, and capable of handling real-world scenarios automatically.

Action items

  • Think of a process you handle repeatedly, like reviewing support tickets or following up on overdue payments. Write down a condition you would check (e.g., "Is the ticket marked urgent?") and a list you might go through (e.g., "List of open tickets"). This will help you see where if statements and for loops could simplify your work through automation.

  • Take the basic programming concepts knowledge check:

Keep on cluckin'

Last updated