[ https://issues.apache.org/jira/browse/TINKERPOP-2011?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kuppitz closed TINKERPOP-2011. ------------------------------------- Resolution: Fixed Fix Version/s: 3.2.10 3.3.4 3.4.0 > Use NumberHelper on choose() > ---------------------------- > > Key: TINKERPOP-2011 > URL: https://issues.apache.org/jira/browse/TINKERPOP-2011 > Project: TinkerPop > Issue Type: Improvement > Components: process > Affects Versions: 3.2.9 > Reporter: stephen mallette > Assignee: Daniel Kuppitz > Priority: Minor > Fix For: 3.4.0, 3.3.4, 3.2.10 > > > The {{choose()} step could use {{NumberHelper}} to make this easier: > {code} > gremlin> g.V(1).choose(values('b')).option(b, > constant(true)).option(none,constant(false)) > ==>true > gremlin> g.V(1).choose(values('b')).option(1, > constant(true)).option(none,constant(false)) > ==>false > gremlin> g.V(1).choose(values('b')).option(1 as byte, > constant(true)).option(none,constant(false)) > ==>true > {code} > as discussed here: > https://groups.google.com/d/msg/gremlin-users/4pjH7AOM72s/ohIEdABfBQAJ -- This message was sent by Atlassian JIRA (v7.6.3#76005)