Skip to content

Support conditionals #4

@thomasjohns

Description

@thomasjohns

E.g.

transform Test {
    headers {
        'a' -> 'A'
    }
    values {
       ['A'] -> add 1 | mult 2
       ['B'] -> {
           | if ['A'] > 1 {
               ['C']
           } else {
               ['A']
           }
           | if ['a'] == 3 {
               add 1 | mult 2
           }
           | square
       }
       ['C'] -> {
           | trim
           | title
           | replace '  ' ' '
       }
   }
}

Stages

  • parse
  • interpret

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions