Is there a way to specify a default value for an import #389
Answered
by
anderseknert
JAForbes
asked this question in
OPA and Rego
-
E.g. something along the lines of:
|
Beta Was this translation helpful? Give feedback.
Answered by
anderseknert
Apr 3, 2023
Replies: 1 comment 1 reply
-
Not in the import statement itself. But you can assign it to a "normal" variable with a default value, which would do the same thing: default currency := "USD"
currency := input.currency |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JAForbes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not in the import statement itself. But you can assign it to a "normal" variable with a default value, which would do the same thing: