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

process question condition #25

Open
k1m0ch1 opened this issue Jan 20, 2021 · 0 comments
Open

process question condition #25

k1m0ch1 opened this issue Jan 20, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@k1m0ch1
Copy link
Collaborator

k1m0ch1 commented Jan 20, 2021

the condition key in the question is to handle if the question is valid to be asked or not, the question process suppose to be sequentially, so this will be good for custom conditional

conditional using abbreviation
eq as Equal
gte Greater Than or Equal
lte less than or equal
lt less than
neq not equal
in with the function like in('compare stirng', 'compare string')

coral config must be like this

...
- question:
  slug: third
  asking: some word
  validation:
    rule: *
    message: ""
  condition: first eq 'hello'
...

This need to be added on sessions too

if the condition is not meet, the data on sessions must be included but with value null

@k1m0ch1 k1m0ch1 added the enhancement New feature or request label Jan 20, 2021
@k1m0ch1 k1m0ch1 self-assigned this Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant