apoc.scoring.existence

Details

Syntax

apoc.scoring.existence(score, exists)

Description

Returns the given score if true, 0 if false.

Arguments

Name

Type

Description

score

INTEGER

The score to return if the exists is true.

exists

BOOLEAN

Whether or not to return the score.

Returns

FLOAT

Usage Examples

RETURN apoc.scoring.existence(10,true) AS output;
Results
output

10.0

RETURN apoc.scoring.existence(10,false) AS output;
Results
output

0.0