Skip to content

Commit

Permalink
fix for #562
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Jul 2, 2024
1 parent 16250a5 commit 32d92c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/src/content/docs/reference/scripts/variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ The `env.vars` object contains a set of variable values. You can use these varia
```javascript
// grab locale from variable or default to en-US
const locale = env.vars.locale || "en-US"
// conditionally modify prompt
if (env.vars.explain)
$`Explain your reasoning`
```

### Script parameters
Expand Down

0 comments on commit 32d92c2

Please sign in to comment.