Gremlin console is built on top of Groovy, so you can execute any valid Groovy code in the Gremlin console.
gremlin> 2 + 3
==>5
gremlin>
gremlin> 2 * 3
==>6
gremlin>
gremlin> println "Hello World"
Hello World
==>null
gremlin>
gremlin> name = 'Krishna'
==>Krishna
gremlin>
gremlin> print "Hello {name}"
Hello {name}==>null
gremlin>
gremlin> print "Hello ${name}"
Hello Krishna==>null
gremlin>
gremlin>
gremlin>
gremlin> for (a in 1..10) {print "${a} "};println()
1 2 3 4 5 6 7 8 9 10
==>null
No comments:
Post a Comment