If I can check the value of a property like this:
g.V().hasLabel('appUser').has('myId','1234').values('isPrivate')
==>false
But when I check if that value is false
within an if
, doesn't return what I would expect:
if(g.V().hasLabel('appUser').has('myId','1234').values('isPrivate') == 'false'){'is false'}else{'is true'}
==>is true
Similarly, this also doesn't return what I would expect:
if(!g.V().hasLabel('appUser').has('myId','1234').values('isPrivate')){'is false'}else{'is true'}
==>is true
How should I update this to perform a conditional check?