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

Feature request: a branch that works with failing conditions without triggering an error. #159

Open
steve-h opened this issue Jun 23, 2018 · 0 comments

Comments

@steve-h
Copy link
Contributor

steve-h commented Jun 23, 2018

When using a VariableResolver with function l_if($notfoundthusnil,,) it errors as the $notfoundthusnil variable does not resolve. Sort of a javascript 'falsy' kind of problem.

What would be nice is a logical function l_notfalsy($notfoundthusnil,,) that will execute the false branch if the VariableResolver returns nil but the user is then unwise to use the $notfoundthusnil variable in the false branch.
Need a function that executes the test expression and if it is nil,0,crashes,undefined then it executes the alternate (3rd) expression.

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

No branches or pull requests

1 participant