Home
Order
Uses
Docs
About
Credits

Get Started

  • Get Started
  • Commands

Infrastructure

  • Relay
  • Bulletin

Authentication

  • Chits
  • License Plate Nonce

Standards

  • Standards
  • Constraints
  • Extending Standards
  • Standards as Constraints
  • Standard Definitions

Records

  • Records
  • In-Memory
  • Finding
  • Sorting
  • Updating
  • Deleting
  • Importing and Exporting

Code

  • Variables & Types
  • Operators
  • Conditions
  • Loops
  • Functions
  • First Run

Functionality

  • Functionality
  • Search
  • Files
  • Intelligence
  • Database

Interfaces

  • Secured Websocket
  • Node GUI

Loops

The For Loop

The for loop runs a block of code until it reaches the end of a given sequence. In Standard, that can be with a single int to execute a specific number of times or for each object in an array. You can use the @ to indicate the current working object.

This example will print the number the loop is on, five times.

    
    for: 5 {
        print @
    }
    

Then, if you want to iterate through an object like database results, do...

    
    results [vhl]

    #Print each vehicle in results
    for: results {
        print @
    }
    

The While Loop

The while loop runs a block of code until the condition provided valuates to false.

This example will print the number the loop is on, five times.

    
    i 0
    while: i < 5 {
        i++
        print @
    }
    
Order Use Cases Docs About Credits Newsletter

© 2026 Standard Computers LLC of Cincinnati