Step - coalesce

coalesce · category: Branches and loops

Runs the child traversals in order and emits the results of the first one that yields anything.

Forms

coalesce(arg1: any)
coalesce(arg1: any, arg2: any)
coalesce(arg1, …, arg10)

Example

g.v(1, 3).coalesce(__.values("age"), __.values("lang")).to_list()   // [29, "java"]