Origin’s control flow syntax is designed to be clean and English-like while remaining unambiguous for both humans and automated tools. All block bodies — whether they belong to anDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/boblio-max/origin/llms.txt
Use this file to discover all available pages before exploring further.
if, a for, or a while — are wrapped in curly braces { }. There are no indentation rules to enforce: the braces define structure. This page covers every branching and looping construct available in Origin, along with the full set of comparison and logical operators you can use inside conditions.
if / elif / else
Conditional execution uses the if keyword, with optional elif chains and a final else fallback. Conditions can use any comparison or logical operator:
=== for strict equality (type + value) and !== for strict inequality when you need to distinguish between values that compare equal under loose rules:
for Loops
Iterating with range()
The range(start, end) built-in generates an integer sequence from start (inclusive) to end (exclusive), exactly like Python’s range:
Iterating over a List
You can loop directly over any list variable:while Loops
A while loop runs its body as long as its condition is truthy:
break and continue
Use break to exit a loop immediately and continue to skip to the next iteration:
pass
The pass statement is a no-op placeholder. Use it to satisfy a required block body when you have nothing to execute yet:
Comparison Operators
| Operator | Meaning |
|---|---|
== | Loose equality |
!= | Loose inequality |
=== | Strict equality (type + value) |
!== | Strict inequality |
< | Less than |
> | Greater than |
<= | Less than or equal |
>= | Greater than or equal |
<> | Alias for != |
Logical Operators
Origin accepts both English-style keywords and symbolic forms — choose whichever reads more naturally in context:| Keyword form | Symbol form | Meaning |
|---|---|---|
and | && | Logical AND |
or | || | Logical OR |
not | ! | Logical NOT |