This is a cache of https://www.elastic.co/guide/en/elasticsearch/painless/8.19/painless-keywords.html. It is a snapshot of the page as it appeared on 2025-11-24T06:21:04.297+0000.
<strong>keyword</strong>s | Painless Scripting Language [8.19] | Elastic
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

keywords

edit

keywords are reserved tokens for built-in language features.

Errors

keywords

if

else

while

do

for

in

continue

break

return

new

try

catch

throw

this

instanceof