-
Notifications
You must be signed in to change notification settings - Fork 9
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
function jacketOrElse #6
Comments
Yesterday I found a case where it showed that this functionality is even necessary because my workaround did not work: @return jacket($rem-list, all) jacket($px-list, ielt9); This worked fine up to yesterday, where I found out that this returns a List with a null value, which Is not what I wanted. |
That's a decent idea, PR welcome. Would you mind calling the function |
Thank you for looking @ the pull request. More comments there. I'll close this issue now. |
for my project I have implemented a Function like that:
It will return
$value
if the$contexts
match or$else
if not.If you think his would be an interesting addition to Jacket, drop me a note. I will Fork Jacket and place a pull request.
I had to implement his function because I did not find a way to get a Value if none of the
$contexts
matched.Regards, Hannes
The text was updated successfully, but these errors were encountered: