Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default value #569

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

miromannino
Copy link

Added the option to add default values in case none is given in the prompt.

For example {{value:MyVariable|SomeValue}}

Will be "SomeValue" if nothing is given in the prompt.

This should solve #264, with a different syntax. My idea is having something similar to other languages that short-circuit evaluation for OR. For example in Js console.log(MyVariable||"SomeValue") prints "SomeValue" if MyVariable is undefined.

@vercel
Copy link

vercel bot commented Sep 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
quickadd ✅ Ready (Inspect) Visit Preview Sep 13, 2023 2:20pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant