Skip to content

Conversation

@renshuki
Copy link
Contributor

@renshuki renshuki commented Oct 3, 2019

I struggled to find a conditional statement (if/else) in the Painless documentation. I think it would be nice to at least have one here.

There is also the possibility to add somethig similar to A Brief Painless Walkthrough but this is less generic.

Thanks.

@ywelsch ywelsch added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >docs General docs changes labels Oct 3, 2019
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Scripting)

@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (>docs)

@jrodewig jrodewig requested a review from rjernst October 3, 2019 12:57
Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I'll wait until a dev has a chance to review before merging.

Note: If we add this example, it probably makes sense to add other examples (such as while).

Copy link
Contributor

@jdconrad jdconrad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for adding this.

@renshuki
Copy link
Contributor Author

renshuki commented Oct 4, 2019

Awesome, thanks for the quick merge.
Noted I'll work on adding other statements to the doc as well @jrodewig

jdconrad pushed a commit that referenced this pull request May 11, 2020
Add more examples to the Painless statements documentation (including while and do...while) as requested in #47485 (review)
jdconrad pushed a commit to jdconrad/elasticsearch that referenced this pull request May 11, 2020
Add more examples to the Painless statements documentation (including while and do...while) as requested in elastic#47485 (review)
jdconrad pushed a commit that referenced this pull request May 11, 2020
Add more examples to the Painless statements documentation (including while and do...while) as requested in #47485 (review)
jdconrad pushed a commit that referenced this pull request May 11, 2020
Add more examples to the Painless statements documentation (including while and do...while) as requested in #47485 (review)
jdconrad pushed a commit that referenced this pull request May 11, 2020
Add more examples to the Painless statements documentation (including while and do...while) as requested in #47485 (review)
jdconrad pushed a commit that referenced this pull request May 11, 2020
Add more examples to the Painless statements documentation (including while and do...while) as requested in #47485 (review)
jdconrad pushed a commit that referenced this pull request May 11, 2020
Add more examples to the Painless statements documentation (including while and do...while) as requested in #47485 (review)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants