Cole-Greer commented on code in PR #3154:
URL: https://github.com/apache/tinkerpop/pull/3154#discussion_r2226726434


##########
docs/src/dev/provider/gremlin-semantics.asciidoc:
##########
@@ -776,6 +776,32 @@ None
 See: 
link:https://github.com/apache/tinkerpop/tree/x.y.z/gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.java[source],
 link:https://tinkerpop.apache.org/docs/x.y.z/reference/#as-step[reference]
 
+[[asBool-step]]
+=== asBool()
+
+*Description:* Parse the value of the incoming traverser as boolean.
+
+*Syntax:* `asBool()`
+
+[width="100%",options="header"]
+|=========================================================
+|Start Step |Mid Step |Modulated |Domain |Range
+|N |Y |N |`Number`/`String`/`null` |`Boolean`
+|=========================================================
+
+*Arguments:*
+
+None
+
+`null` values return `null`, numbers evaluate to `true` if non-zero. Strings 
only accept "true" or "false" (case-insensitive).
+
+*Exceptions*
+
+If the incoming traverser type is unsupported or a string other than "true" or 
"false" then an `IllegalArgumentException` is thrown.

Review Comment:
   ```suggestion
   If the incoming traverser type is unsupported, a string other than "true" or 
"false", or `null`, then an `IllegalArgumentException` is thrown.
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to