DotPrompt.Compiler.IfResolver (anantha_dot_prompt v1.1.0)

Copy Markdown

Resolves if/elif/else conditions using natural language operators.

Summary

Functions

Resolves a condition string against a value.

Types

condition_type()

@type condition_type() ::
  {:is, any()}
  | {:not, any()}
  | {:includes, any()}
  | {:above, integer()}
  | {:below, integer()}
  | {:min, integer()}
  | {:max, integer()}
  | {:between, integer(), integer()}

Functions

resolve(var_value, condition_str)

Resolves a condition string against a value.